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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalParam
(String key, String value) getConditionForEntityType
(String entityType) @Nullable String
If specified, only results of the specified entity type will be returned.int
getLimit()
If specified, the result will not have more result documents than specified.int
If specified, the result will only contain documents with are not lower than minimalIndexPriority.@Nullable Integer
A query string which can also contain specific search query syntax (e.g.@Nullable String
boolean
isFieldRequested
(String field) 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).secure
(boolean secure) void
setEntityType
(@Nullable String entityType) void
setLimit
(int limit) void
setMinimalIndexPriority
(int minimalIndexPriority) void
setOffset
(int offset) void
setQueryString
(String queryString) void
setSearchAfter
(String searchAfter) void
setSecure
(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
-