Package org.nuxeo.elasticsearch.api
Class EsResult
java.lang.Object
org.nuxeo.elasticsearch.api.EsResult
- Direct Known Subclasses:
EsScrollResult
- Since:
- 6.0
-
Constructor Summary
ConstructorDescriptionEsResult
(DocumentModelList documents, List<Aggregate<Bucket>> aggregates, org.opensearch.action.search.SearchResponse response) EsResult
(IterableQueryResult rows, List<Aggregate<Bucket>> aggregates, org.opensearch.action.search.SearchResponse response) EsResult
(org.opensearch.action.search.SearchResponse response) -
Method Summary
Modifier and TypeMethodDescriptionGet the aggregates list or null if onlyElasticsearchResponse option is set.Get the list of Nuxeo documents, this is populated when using a SELECT * clause, or when submitting esQuery.org.opensearch.action.search.SearchResponse
Returns the original Elasticsearch response.getRows()
Iterator to use when selecting fields: SELECT ecm:uuid ...
-
Constructor Details
-
EsResult
public EsResult(DocumentModelList documents, List<Aggregate<Bucket>> aggregates, org.opensearch.action.search.SearchResponse response) -
EsResult
public EsResult(IterableQueryResult rows, List<Aggregate<Bucket>> aggregates, org.opensearch.action.search.SearchResponse response) -
EsResult
public EsResult(org.opensearch.action.search.SearchResponse response)
-
-
Method Details
-
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.
-
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
-
getAggregates
Get the aggregates list or null if onlyElasticsearchResponse option is set. -
getElasticsearchResponse
public org.opensearch.action.search.SearchResponse getElasticsearchResponse()Returns the original Elasticsearch response. Use it at your own risk- Since:
- 7.3
-