Package org.nuxeo.elasticsearch.api
Class EsResult
- java.lang.Object
- 
- org.nuxeo.elasticsearch.api.EsResult
 
- 
- Direct Known Subclasses:
- EsScrollResult
 
 public class EsResult extends Object - Since:
- 6.0
 
- 
- 
Constructor SummaryConstructors Constructor Description EsResult(org.elasticsearch.action.search.SearchResponse response)EsResult(DocumentModelList documents, List<Aggregate<Bucket>> aggregates, org.elasticsearch.action.search.SearchResponse response)EsResult(IterableQueryResult rows, List<Aggregate<Bucket>> aggregates, org.elasticsearch.action.search.SearchResponse response)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Aggregate<Bucket>>getAggregates()Get the aggregates list or null if onlyElasticsearchResponse option is set.DocumentModelListgetDocuments()Get the list of Nuxeo documents, this is populated when using a SELECT * clause, or when submitting esQuery.org.elasticsearch.action.search.SearchResponsegetElasticsearchResponse()Returns the original Elasticsearch response.IterableQueryResultgetRows()Iterator to use when selecting fields: SELECT ecm:uuid ...
 
- 
- 
- 
Constructor Detail- 
EsResultpublic EsResult(DocumentModelList documents, List<Aggregate<Bucket>> aggregates, org.elasticsearch.action.search.SearchResponse response) 
 - 
EsResultpublic EsResult(IterableQueryResult rows, List<Aggregate<Bucket>> aggregates, org.elasticsearch.action.search.SearchResponse response) 
 - 
EsResultpublic EsResult(org.elasticsearch.action.search.SearchResponse response) 
 
- 
 - 
Method Detail- 
getDocumentspublic DocumentModelList getDocuments() Get the list of Nuxeo documents, this is populated when using a SELECT * clause, or when submitting esQuery.- Returns:
- null if the query returns fields or if the onlyElasticsearchResponse option is set.
 
 - 
getRowspublic IterableQueryResult getRows() Iterator to use when selecting fields: SELECT ecm:uuid ...- Returns:
- null if the query returns documents or if the onlyElasticsearchResponse option is set.
- Since:
- 7.2
 
 - 
getAggregatespublic List<Aggregate<Bucket>> getAggregates() Get the aggregates list or null if onlyElasticsearchResponse option is set.
 - 
getElasticsearchResponsepublic org.elasticsearch.action.search.SearchResponse getElasticsearchResponse() Returns the original Elasticsearch response. Use it at your own risk- Since:
- 7.3
 
 
- 
 
-