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 int
protected final int
protected final NuxeoPrincipal
protected final SQLQuery
protected final Duration
protected final boolean
protected final int
protected final List
<SearchIndex> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSelectFields
(SQLQuery query) protected static SQLQuery
buildSQLQuery
(SearchQueryImpl.Builder builder) int
getLimit()
int
getQuery()
int
Gets the list of searchIndex to perform the query.Returns the fields present in theSELECT
clause with their type if it existsboolean
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:SearchQuery
Gets 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:
getSearchIndexes
in interfaceSearchQuery
-
getQuery
- Specified by:
getQuery
in interfaceSearchQuery
-
getPrincipal
- Specified by:
getPrincipal
in interfaceSearchQuery
-
getOffset
public int getOffset()- Specified by:
getOffset
in interfaceSearchQuery
-
getLimit
public int getLimit()- Specified by:
getLimit
in interfaceSearchQuery
-
isScrollSearch
public boolean isScrollSearch()- Specified by:
isScrollSearch
in interfaceSearchQuery
-
getScrollKeepAlive
- Specified by:
getScrollKeepAlive
in interfaceSearchQuery
-
getScrollSize
public int getScrollSize()- Specified by:
getScrollSize
in interfaceSearchQuery
-
getHighlights
- Specified by:
getHighlights
in interfaceSearchQuery
-
getAggregates
- Specified by:
getAggregates
in interfaceSearchQuery
-
getSelectFields
Description copied from interface:SearchQuery
Returns the fields present in theSELECT
clause with their type if it exists- Specified by:
getSelectFields
in interfaceSearchQuery
-
toString
-