fix #647 refresh index
This commit is contained in:
parent
6e8f2119c9
commit
8e4aa4f083
1 changed files with 2 additions and 0 deletions
|
@ -413,6 +413,8 @@ public class FessEsClient implements Client {
|
|||
|
||||
final String updatedIndexName;
|
||||
if (isFessIndex) {
|
||||
client.admin().indices().prepareRefresh(fessConfig.getIndexDocumentUpdateIndex()).execute()
|
||||
.actionGet(fessConfig.getIndexIndicesTimeout());
|
||||
final GetIndexResponse response =
|
||||
client.admin().indices().prepareGetIndex().addIndices(fessConfig.getIndexDocumentUpdateIndex()).execute()
|
||||
.actionGet(fessConfig.getIndexIndicesTimeout());
|
||||
|
|
Loading…
Add table
Reference in a new issue