@Override public void refresh(String indexName) { Assert.notNull(indexName, "No index defined for refresh()"); try { // TODO: Do something with the response. client.indices().refresh(refreshRequest(indexName)); } catch (IOException e) { throw new ElasticsearchException("failed to refresh index: " + indexName, e); } }
@Override public ActionFuture<RefreshResponse> execute(final IndicesAdminClient admin) { return admin.refresh(Requests.refreshRequest(indexName).waitForOperations(true)); } });
public void refresh(String indexName, boolean waitForOperation) { client.admin().indices() .refresh(refreshRequest(indexName).waitForOperations(waitForOperation)).actionGet(); }
@Override public void refresh(String indexName) { Assert.notNull(indexName, "No index defined for refresh()"); getIndicesAdminClient().refresh(refreshRequest(indexName)).actionGet(); }
public <T> void refresh(Class<T> clazz, boolean waitForOperation) { ElasticsearchPersistentEntity persistentEntity = getPersistentEntityFor(clazz); client.admin().indices() .refresh(refreshRequest(persistentEntity.getIndexName()).waitForOperations(waitForOperation)).actionGet(); }