use of org.elasticsearch.action.search.ClearScrollResponse in project elasticsearch by elastic.
the class ESIntegTestCase method clearScroll.
/**
* Clears the given scroll Ids
*/
public void clearScroll(String... scrollIds) {
ClearScrollResponse clearResponse = client().prepareClearScroll().setScrollIds(Arrays.asList(scrollIds)).get();
assertThat(clearResponse.isSucceeded(), equalTo(true));
}
use of org.elasticsearch.action.search.ClearScrollResponse in project graylog2-server by Graylog2.
the class ScrollResult method cancel.
public void cancel() {
final ClearScrollResponse clearScrollResponse = client.prepareClearScroll().addScrollId(scrollId).execute().actionGet();
LOG.debug("[{}] clearScroll for query successful: {}", queryHash, clearScrollResponse.isSucceeded());
}
Aggregations