Package org.nuxeo.elasticsearch.api
Interface ElasticSearchService
- All Known Implementing Classes:
ElasticSearchComponent,ElasticSearchServiceImpl
public interface ElasticSearchService
Interface to search on documents
- Since:
- 5.9.3
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearScroll(EsScrollResult scrollResult) Clear scroll on ElasticSearch cluster for the givenEsScrollResult.query(NxQueryBuilder queryBuilder) Returns a document list using anNxQueryBuilder.queryAndAggregate(NxQueryBuilder queryBuilder) Returns documents and aggregates.scroll(EsScrollResult scrollResult) Retrieves the next batch of results of a scrollable search request for the givenEsScrollResult.scroll(NxQueryBuilder queryBuilder, long keepAlive) Performs the initial search of a scrollable search request using anNxQueryBuilder.
-
Method Details
-
query
Returns a document list using anNxQueryBuilder.- Since:
- 5.9.5
-
queryAndAggregate
Returns documents and aggregates.- Since:
- 6.0
-
scroll
Performs the initial search of a scrollable search request using anNxQueryBuilder.- Parameters:
keepAlive- the search context lifetime- Returns:
- an
EsScrollResultincluding the search results and a scroll id, to be passed to the subsequent calls toscroll(EsScrollResult) - Since:
- 8.3
-
scroll
Retrieves the next batch of results of a scrollable search request for the givenEsScrollResult.- Returns:
- an
EsScrollResultincluding the search results and a scroll id, to be passed to the subsequent calls to {code scroll}. - Since:
- 8.3
-
clearScroll
Clear scroll on ElasticSearch cluster for the givenEsScrollResult.- Since:
- 8.4
-