Package | Description |
---|---|
org.nuxeo.elasticsearch | |
org.nuxeo.elasticsearch.api | |
org.nuxeo.elasticsearch.core | |
org.nuxeo.elasticsearch.query |
Modifier and Type | Method and Description |
---|---|
DocumentModelList |
ElasticSearchComponent.query(NxQueryBuilder queryBuilder) |
EsResult |
ElasticSearchComponent.queryAndAggregate(NxQueryBuilder queryBuilder) |
EsScrollResult |
ElasticSearchComponent.scroll(NxQueryBuilder queryBuilder,
long keepAlive) |
Modifier and Type | Field and Description |
---|---|
protected NxQueryBuilder |
EsScrollResult.queryBuilder
NxQueryBuilder used for the initial search request. |
Modifier and Type | Method and Description |
---|---|
NxQueryBuilder |
EsScrollResult.getQueryBuilder() |
Modifier and Type | Method and Description |
---|---|
DocumentModelList |
ElasticSearchService.query(NxQueryBuilder queryBuilder)
Returns a document list using an
NxQueryBuilder . |
EsResult |
ElasticSearchService.queryAndAggregate(NxQueryBuilder queryBuilder)
Returns documents and aggregates.
|
EsScrollResult |
ElasticSearchService.scroll(NxQueryBuilder queryBuilder,
long keepAlive)
Performs the initial search of a scrollable search request using an
NxQueryBuilder . |
Constructor and Description |
---|
EsScrollResult(DocumentModelList documents,
org.elasticsearch.action.search.SearchResponse response,
NxQueryBuilder queryBuilder,
String scrollId,
long keepAlive) |
EsScrollResult(IterableQueryResult rows,
org.elasticsearch.action.search.SearchResponse response,
NxQueryBuilder queryBuilder,
String scrollId,
long keepAlive) |
EsScrollResult(NxQueryBuilder queryBuilder,
String scrollId,
long keepAlive) |
EsScrollResult(org.elasticsearch.action.search.SearchResponse response,
NxQueryBuilder queryBuilder,
String scrollId,
long keepAlive) |
Modifier and Type | Method and Description |
---|---|
protected org.elasticsearch.action.search.SearchRequest |
ElasticSearchServiceImpl.buildEsSearchRequest(NxQueryBuilder query,
org.elasticsearch.action.search.SearchType searchType) |
protected org.elasticsearch.action.search.SearchRequest |
ElasticSearchServiceImpl.buildEsSearchScrollRequest(NxQueryBuilder query,
org.elasticsearch.action.search.SearchType searchType,
long keepAlive) |
protected List<Aggregate<Bucket>> |
ElasticSearchServiceImpl.getAggregates(NxQueryBuilder queryBuilder,
org.elasticsearch.action.search.SearchResponse response) |
protected DocumentModelListImpl |
ElasticSearchServiceImpl.getDocumentModels(NxQueryBuilder queryBuilder,
org.elasticsearch.action.search.SearchResponse response) |
protected EsScrollResult |
ElasticSearchServiceImpl.getScrollResults(NxQueryBuilder queryBuilder,
org.elasticsearch.action.search.SearchResponse response,
String scrollId,
long keepAlive) |
protected String |
ElasticSearchServiceImpl.getSearchIndexesAsString(NxQueryBuilder query) |
protected void |
ElasticSearchServiceImpl.logSearchRequest(org.elasticsearch.action.search.SearchRequest request,
NxQueryBuilder query,
org.elasticsearch.action.search.SearchType searchType) |
DocumentModelList |
ElasticSearchServiceImpl.query(NxQueryBuilder queryBuilder) |
EsResult |
ElasticSearchServiceImpl.queryAndAggregate(NxQueryBuilder queryBuilder) |
EsScrollResult |
ElasticSearchServiceImpl.scroll(NxQueryBuilder queryBuilder,
long keepAlive) |
protected EsScrollResult |
ElasticSearchServiceImpl.scroll(NxQueryBuilder queryBuilder,
org.elasticsearch.action.search.SearchType searchType,
long keepAlive) |
protected org.elasticsearch.action.search.SearchResponse |
ElasticSearchServiceImpl.search(NxQueryBuilder query) |
protected org.elasticsearch.action.search.SearchResponse |
ElasticSearchServiceImpl.searchScroll(NxQueryBuilder query,
org.elasticsearch.action.search.SearchType searchType,
long keepAlive) |
Modifier and Type | Method and Description |
---|---|
NxQueryBuilder |
NxQueryBuilder.addAggregate(AggregateEsBase<? extends org.elasticsearch.search.aggregations.Aggregation,? extends Bucket> aggregate) |
NxQueryBuilder |
NxQueryBuilder.addAggregates(List<AggregateEsBase<? extends org.elasticsearch.search.aggregations.Aggregation,? extends Bucket>> aggregates) |
NxQueryBuilder |
NxQueryBuilder.addSearchRepository(String repositoryName)
Add a specific repository to search.
|
NxQueryBuilder |
NxQueryBuilder.addSort(SortInfo sortInfo) |
NxQueryBuilder |
NxQueryBuilder.addSort(SortInfo[] sortInfos) |
NxQueryBuilder |
NxQueryBuilder.esQuery(org.elasticsearch.index.query.QueryBuilder queryBuilder)
Build the query using the Elasticsearch QueryBuilder API.
|
NxQueryBuilder |
NxQueryBuilder.fetchFromDatabase()
Fetch the documents using VCS (database) engine.
|
NxQueryBuilder |
NxQueryBuilder.fetchFromElasticsearch()
Ask for the Elasticsearch _source field, use it to build documents.
|
NxQueryBuilder |
NxQueryBuilder.highlight(List<String> highlightFields) |
NxQueryBuilder |
NxQueryBuilder.hitDocConsumer(EsFetcher.HitDocConsumer consumer)
If search results are found, use this SearchHit and DocumentModel consumer on each hit.
|
NxQueryBuilder |
NxQueryBuilder.limit(int limit)
No more than that many documents will be returned.
|
NxQueryBuilder |
NxQueryBuilder.nxql(String nxql)
Build the query from a NXQL string.
|
NxQueryBuilder |
NxQueryBuilder.offset(int offset)
Says to skip that many documents before beginning to return documents.
|
NxQueryBuilder |
NxQueryBuilder.onlyElasticsearchResponse()
Don't return document model list, aggregates or rows, only the original Elasticsearch response is accessible from
EsResult.getElasticsearchResponse() |
NxQueryBuilder |
NxQueryBuilder.searchOnAllRepositories()
Search on all available repositories.
|
Copyright © 2019 Nuxeo. All rights reserved.