Class FulltextSearchQuery
java.lang.Object
ch.tocco.nice2.enterprisesearch.api.FulltextSearchQuery
- All Implemented Interfaces:
Serializable
A data transfer object for a fulltext index search query.
The builder-pattern is supported for setting up a query (e.g. #withLimit or #withEntityType)
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalParam(String key, String value) getConditionForEntityType(String entityType) @Nullable StringIf specified, only results of the specified entity type will be returned.intgetLimit()If specified, the result will not have more result documents than specified.intIf specified, the result will only contain documents with are not lower than minimalIndexPriority.@Nullable IntegerA query string which can also contain specific search query syntax (e.g.@Nullable StringbooleanisFieldRequested(String field) booleanisSecure()If true, every result document will be checked against current read permissions (and will not be returned if current user has no reads to read this entity).secure(boolean secure) voidsetEntityType(@Nullable String entityType) voidsetLimit(int limit) voidsetMinimalIndexPriority(int minimalIndexPriority) voidsetOffset(int offset) voidsetQueryString(String queryString) voidsetSearchAfter(String searchAfter) voidsetSecure(boolean secure) toString()withConditionForEntityType(String entityType, Condition condition) Provided condition will be added to load-check-query (only if secure mode is active).withEntityType(@Nullable String entityType) withLimit(int limit) withMinimalIndexPriority(int minimalIndexPriority) withOffset(int offset) withQueryString(String queryString)
-
Constructor Details
-
FulltextSearchQuery
public FulltextSearchQuery() -
FulltextSearchQuery
- See Also:
-
-
Method Details
-
addSorting
-
getSorting
-
addAdditionalParam
-
getAdditionalParams
-
addFields
-
getFields
-
isFieldRequested
-
withQueryString
- See Also:
-
withEntityType
- See Also:
-
withLimit
- See Also:
-
withOffset
-
withMinimalIndexPriority
- See Also:
-
secure
- See Also:
-
getQueryString
A query string which can also contain specific search query syntax (e.g. Lucene) -
setQueryString
- See Also:
-
getEntityType
If specified, only results of the specified entity type will be returned. -
setEntityType
- See Also:
-
getLimit
public int getLimit()If specified, the result will not have more result documents than specified. -
setLimit
public void setLimit(int limit) - See Also:
-
getOffset
-
setOffset
public void setOffset(int offset) -
getSearchAfter
-
setSearchAfter
-
getMinimalIndexPriority
public int getMinimalIndexPriority()If specified, the result will only contain documents with are not lower than minimalIndexPriority. Only gets respected when no entity type is specified. -
setMinimalIndexPriority
public void setMinimalIndexPriority(int minimalIndexPriority) - See Also:
-
isSecure
public boolean isSecure()If true, every result document will be checked against current read permissions (and will not be returned if current user has no reads to read this entity). -
setSecure
public void setSecure(boolean secure) - See Also:
-
withConditionForEntityType
Provided condition will be added to load-check-query (only if secure mode is active). -
getConditionForEntityType
-
toString
-