fix #647 refresh index

This commit is contained in:
Shinsuke Sugaya 2016-08-25 11:53:32 +09:00
parent 6e8f2119c9
commit 8e4aa4f083

View file

@ -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());