Package org.nuxeo.ecm.core.search
Class SearchQueryImpl
java.lang.Object
org.nuxeo.ecm.core.search.SearchQueryImpl
- All Implemented Interfaces:
SearchQuery
The main SearchQuery implementation to perform NXQL search.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected final NuxeoPrincipalprotected final SQLQueryprotected final Durationprotected final booleanprotected final intprotected final List<SearchIndex> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSelectFields(SQLQuery query) protected static SQLQuerybuildSQLQuery(SearchQueryImpl.Builder builder) intgetLimit()intgetQuery()intGets the list of searchIndex to perform the query.Returns the fields present in theSELECTclause with their type if it existsbooleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.search.SearchQuery
isMultiRepositories
-
Field Details
-
searchIndexes
-
query
-
principal
-
offset
protected final int offset -
limit
protected final int limit -
scrollSearch
protected final boolean scrollSearch -
scrollKeepAlive
-
scrollSize
protected final int scrollSize -
highlights
-
aggregates
-
selectFields
-
-
Constructor Details
-
SearchQueryImpl
-
-
Method Details
-
buildSQLQuery
-
buildSelectFields
-
getSearchIndexes
Description copied from interface:SearchQueryGets the list of searchIndex to perform the query. If there are more than one item it's a multi repository search, note that all search indexes share the same search client.- Specified by:
getSearchIndexesin interfaceSearchQuery
-
getQuery
- Specified by:
getQueryin interfaceSearchQuery
-
getPrincipal
- Specified by:
getPrincipalin interfaceSearchQuery
-
getOffset
public int getOffset()- Specified by:
getOffsetin interfaceSearchQuery
-
getLimit
public int getLimit()- Specified by:
getLimitin interfaceSearchQuery
-
isScrollSearch
public boolean isScrollSearch()- Specified by:
isScrollSearchin interfaceSearchQuery
-
getScrollKeepAlive
- Specified by:
getScrollKeepAlivein interfaceSearchQuery
-
getScrollSize
public int getScrollSize()- Specified by:
getScrollSizein interfaceSearchQuery
-
getHighlights
- Specified by:
getHighlightsin interfaceSearchQuery
-
getAggregates
- Specified by:
getAggregatesin interfaceSearchQuery
-
getSelectFields
Description copied from interface:SearchQueryReturns the fields present in theSELECTclause with their type if it exists- Specified by:
getSelectFieldsin interfaceSearchQuery
-
toString
-