public class EsResult extends Object
Constructor and Description |
---|
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) |
EsResult(org.elasticsearch.action.search.SearchResponse response) |
Modifier and Type | Method and Description |
---|---|
List<Aggregate<Bucket>> |
getAggregates()
Get the aggregates list or null if onlyElasticsearchResponse option is set.
|
DocumentModelList |
getDocuments()
Get the list of Nuxeo documents, this is populated when using a SELECT * clause, or when submitting esQuery.
|
org.elasticsearch.action.search.SearchResponse |
getElasticsearchResponse()
Returns the original Elasticsearch response.
|
IterableQueryResult |
getRows()
Iterator to use when selecting fields: SELECT ecm:uuid ...
|
public EsResult(DocumentModelList documents, List<Aggregate<Bucket>> aggregates, org.elasticsearch.action.search.SearchResponse response)
public EsResult(IterableQueryResult rows, List<Aggregate<Bucket>> aggregates, org.elasticsearch.action.search.SearchResponse response)
public EsResult(org.elasticsearch.action.search.SearchResponse response)
public DocumentModelList getDocuments()
public IterableQueryResult getRows()
public List<Aggregate<Bucket>> getAggregates()
public org.elasticsearch.action.search.SearchResponse getElasticsearchResponse()
Copyright © 2018 Nuxeo. All rights reserved.