Package org.nuxeo.ecm.core.search
Interface SearchQuery
- All Known Implementing Classes:
SearchQueryImpl
public interface SearchQuery
- Since:
- 2025.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchQueryImpl.Builder
builder
(List<SearchIndex> searchIndexes, String nxql, NuxeoPrincipal principal) static SearchQueryImpl.Builder
builder
(CoreSession session, String nxql) static SearchQueryImpl.Builder
builder
(SearchIndex searchIndex, String nxql) static SearchQueryImpl.Builder
builder
(SearchIndex searchIndex, String nxql, NuxeoPrincipal principal) 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 existsdefault boolean
boolean
-
Method Details
-
getSearchIndexes
List<SearchIndex> getSearchIndexes()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. -
isMultiRepositories
default boolean isMultiRepositories() -
getQuery
SQLQuery getQuery() -
getPrincipal
NuxeoPrincipal getPrincipal() -
getOffset
int getOffset() -
getLimit
int getLimit() -
isScrollSearch
boolean isScrollSearch() -
getScrollKeepAlive
Duration getScrollKeepAlive() -
getScrollSize
int getScrollSize() -
getHighlights
-
getAggregates
-
getSelectFields
Returns the fields present in theSELECT
clause with their type if it exists -
builder
-
builder
-
builder
static SearchQueryImpl.Builder builder(SearchIndex searchIndex, String nxql, NuxeoPrincipal principal) -
builder
static SearchQueryImpl.Builder builder(List<SearchIndex> searchIndexes, String nxql, NuxeoPrincipal principal)
-