Class PlatformGlobalSearchIndexQueryBuilder
java.lang.Object
com.flowable.platform.service.index.PlatformIndexQueryBuilder<PlatformGlobalSearchIndexQueryRequest>
com.flowable.platform.service.work.PlatformGlobalSearchIndexQueryBuilder
public class PlatformGlobalSearchIndexQueryBuilder
extends PlatformIndexQueryBuilder<PlatformGlobalSearchIndexQueryRequest>
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class com.flowable.platform.service.index.PlatformIndexQueryBuilder
customQuery, customSortParameters, objectMapper, order, sort
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformGlobalSearchIndexQueryBuilder
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) PlatformGlobalSearchIndexQueryBuilder
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.node.ObjectNode customQuery, Map<String, SortParameter> sortParameters) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
build
(PlatformGlobalSearchIndexQueryRequest queryRequest, String defaultSort) protected String
getIndexSortName
(String sort) Method that custom query builder can override to provide an alternative sort name for a particular sort.Methods inherited from class com.flowable.platform.service.index.PlatformIndexQueryBuilder
determineOrder, determineSort, getCustomQuery, getCustomSortParameters, getOrder, getQueryBuilder, getSort, parameterTypeToIndexedProperty, processSorting, setCustomQuery, setCustomSortParameters
-
Field Details
-
SORT_ALTERNATIVE
-
GLOBAL_SEARCH_FIELD_LIST
-
-
Constructor Details
-
PlatformGlobalSearchIndexQueryBuilder
public PlatformGlobalSearchIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
PlatformGlobalSearchIndexQueryBuilder
public PlatformGlobalSearchIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.node.ObjectNode customQuery, Map<String, SortParameter> sortParameters)
-
-
Method Details
-
build
- Specified by:
build
in classPlatformIndexQueryBuilder<PlatformGlobalSearchIndexQueryRequest>
-
build
-
getIndexSortName
Description copied from class:PlatformIndexQueryBuilder
Method that custom query builder can override to provide an alternative sort name for a particular sort. For example when sorting by name the sort should be done by nameKeyword instead.- Overrides:
getIndexSortName
in classPlatformIndexQueryBuilder<PlatformGlobalSearchIndexQueryRequest>
- Parameters:
sort
- the requested sort- Returns:
- the sort that should be used
-