Search in sources :

Example 6 with ClearScrollResponse

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));
}
Also used : ClearScrollResponse(org.elasticsearch.action.search.ClearScrollResponse)

Example 7 with ClearScrollResponse

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());
}
Also used : ClearScrollResponse(org.elasticsearch.action.search.ClearScrollResponse)

Aggregations

ClearScrollResponse (org.elasticsearch.action.search.ClearScrollResponse)7 SearchResponse (org.elasticsearch.action.search.SearchResponse)3 ElasticsearchAssertions.assertSearchResponse (org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSearchResponse)3 SearchHit (org.elasticsearch.search.SearchHit)2 ParameterizedMessage (org.apache.logging.log4j.message.ParameterizedMessage)1 Supplier (org.apache.logging.log4j.util.Supplier)1 ClearScrollRequest (org.elasticsearch.action.search.ClearScrollRequest)1 EsRejectedExecutionException (org.elasticsearch.common.util.concurrent.EsRejectedExecutionException)1