public class ElasticSearchServiceImpl extends Object implements ElasticSearchService
Modifier and Type | Field and Description |
---|---|
protected com.codahale.metrics.Timer |
fetchTimer |
protected com.codahale.metrics.MetricRegistry |
registry |
protected com.codahale.metrics.Timer |
searchTimer |
Constructor and Description |
---|
ElasticSearchServiceImpl(ElasticSearchAdminImpl esa) |
Modifier and Type | Method and Description |
---|---|
protected org.elasticsearch.action.search.SearchRequestBuilder |
buildEsSearchRequest(NxQueryBuilder query) |
protected List<Aggregate> |
getAggregates(NxQueryBuilder queryBuilder,
org.elasticsearch.action.search.SearchResponse response) |
protected DocumentModelListImpl |
getDocumentModels(NxQueryBuilder queryBuilder,
org.elasticsearch.action.search.SearchResponse response) |
protected String |
getSearchIndexesAsString(NxQueryBuilder query) |
protected void |
logSearchRequest(org.elasticsearch.action.search.SearchRequestBuilder request,
NxQueryBuilder query) |
protected void |
logSearchResponse(org.elasticsearch.action.search.SearchResponse response) |
DocumentModelList |
query(CoreSession session,
org.elasticsearch.index.query.QueryBuilder queryBuilder,
int limit,
int offset,
SortInfo... sortInfos)
Deprecated.
|
DocumentModelList |
query(CoreSession session,
String nxql,
int limit,
int offset,
SortInfo... sortInfos)
Deprecated.
|
DocumentModelList |
query(NxQueryBuilder queryBuilder)
Returns a document list using an
NxQueryBuilder . |
EsResult |
queryAndAggregate(NxQueryBuilder queryBuilder)
Returns documents and aggregates.
|
protected org.elasticsearch.action.search.SearchResponse |
search(NxQueryBuilder query) |
protected final com.codahale.metrics.MetricRegistry registry
protected final com.codahale.metrics.Timer searchTimer
protected final com.codahale.metrics.Timer fetchTimer
public ElasticSearchServiceImpl(ElasticSearchAdminImpl esa)
@Deprecated public DocumentModelList query(CoreSession session, String nxql, int limit, int offset, SortInfo... sortInfos)
ElasticSearchService
query
in interface ElasticSearchService
@Deprecated public DocumentModelList query(CoreSession session, org.elasticsearch.index.query.QueryBuilder queryBuilder, int limit, int offset, SortInfo... sortInfos)
ElasticSearchService
QueryBuilder
. Fetch documents from the VCS repository.query
in interface ElasticSearchService
public DocumentModelList query(NxQueryBuilder queryBuilder)
ElasticSearchService
NxQueryBuilder
.query
in interface ElasticSearchService
public EsResult queryAndAggregate(NxQueryBuilder queryBuilder)
ElasticSearchService
queryAndAggregate
in interface ElasticSearchService
protected DocumentModelListImpl getDocumentModels(NxQueryBuilder queryBuilder, org.elasticsearch.action.search.SearchResponse response)
protected List<Aggregate> getAggregates(NxQueryBuilder queryBuilder, org.elasticsearch.action.search.SearchResponse response)
protected org.elasticsearch.action.search.SearchResponse search(NxQueryBuilder query)
protected org.elasticsearch.action.search.SearchRequestBuilder buildEsSearchRequest(NxQueryBuilder query)
protected void logSearchResponse(org.elasticsearch.action.search.SearchResponse response)
protected void logSearchRequest(org.elasticsearch.action.search.SearchRequestBuilder request, NxQueryBuilder query)
protected String getSearchIndexesAsString(NxQueryBuilder query)
Copyright © 2015 Nuxeo SA. All rights reserved.