Package io.jmix.search
Class SearchProperties
java.lang.Object
io.jmix.search.SearchProperties
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
Whether automatic indexing of changed entities is enabled.protected final String
Name of default search strategyprotected final boolean
Whether all entity instances related to indexes created or recreated on startup should be enqueued automatically.List of entities that should be automatically enqueued on startup in case of index recreation.protected final String
CRON expression that is used by default Enqueueing Session processing quartz scheduling configuration.protected final String
CRON expression that is used by default Indexing Queue processing quartz scheduling configuration.protected final IndexSchemaManagementStrategy
The way of index schema synchronization.protected final int
Maximum length of prefix terms generated by edge N-gram analyzer for prefix search.protected final int
Max amount of result pages.protected final int
Minimum length of prefix terms generated by edge N-gram analyzer for prefix search.protected final int
Amount of queue items processed in single batch.protected final int
Amount of entity instances enqueued in single batch during entity reindex process.protected final String
Prefix for search index name.protected final int
Batch size for post-search entity processing.protected final int
Max amount of objects displayed on single page of search result.protected final SearchProperties.Server
protected final boolean
Whether the additional search strategy provided by Extended search is visible if there are no index definitions with enabled Extended search.protected final boolean
Whether the default Enqueueing Session processing quartz scheduling configuration is used.protected final boolean
Whether the default Indexing Queue processing quartz scheduling configuration is used.protected final boolean
Whether the wildcard query will be used if input search word is longer than prefix maximum length. -
Constructor Summary
ConstructorDescriptionSearchProperties
(int searchResultPageSize, int maxSearchPageCount, int searchReloadEntitiesBatchSize, int processQueueBatchSize, int reindexEntityEnqueueBatchSize, int minPrefixLength, int maxPrefixLength, boolean changedEntitiesIndexingEnabled, boolean useDefaultIndexingQueueProcessingQuartzConfiguration, boolean useDefaultEnqueueingSessionProcessingQuartzConfiguration, boolean enqueueIndexAllOnStartupIndexRecreationEnabled, boolean unsupportedSearchStrategyVisible, boolean wildcardPrefixQueryEnabled, String enqueueIndexAllOnStartupIndexRecreationEntities, String searchIndexNamePrefix, String defaultSearchStrategy, String indexSchemaManagementStrategy, String indexingQueueProcessingCron, String enqueueingSessionProcessingCron, SearchProperties.Server server) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
int
int
boolean
boolean
boolean
boolean
boolean
boolean
prepareStartupEnqueueingEntities
(String enqueueIndexAllOnStartupIndexRecreationEntities)
-
Field Details
-
searchResultPageSize
protected final int searchResultPageSizeMax amount of objects displayed on single page of search result. -
maxSearchPageCount
protected final int maxSearchPageCountMax amount of result pages. -
searchReloadEntitiesBatchSize
protected final int searchReloadEntitiesBatchSizeBatch size for post-search entity processing. -
processQueueBatchSize
protected final int processQueueBatchSizeAmount of queue items processed in single batch. -
reindexEntityEnqueueBatchSize
protected final int reindexEntityEnqueueBatchSizeAmount of entity instances enqueued in single batch during entity reindex process. -
changedEntitiesIndexingEnabled
protected final boolean changedEntitiesIndexingEnabledWhether automatic indexing of changed entities is enabled. -
useDefaultIndexingQueueProcessingQuartzConfiguration
protected final boolean useDefaultIndexingQueueProcessingQuartzConfigurationWhether the default Indexing Queue processing quartz scheduling configuration is used. -
useDefaultEnqueueingSessionProcessingQuartzConfiguration
protected final boolean useDefaultEnqueueingSessionProcessingQuartzConfigurationWhether the default Enqueueing Session processing quartz scheduling configuration is used. -
enqueueIndexAllOnStartupIndexRecreationEnabled
protected final boolean enqueueIndexAllOnStartupIndexRecreationEnabledWhether all entity instances related to indexes created or recreated on startup should be enqueued automatically. -
server
-
defaultSearchStrategy
Name of default search strategy -
indexingQueueProcessingCron
CRON expression that is used by default Indexing Queue processing quartz scheduling configuration. -
enqueueingSessionProcessingCron
CRON expression that is used by default Enqueueing Session processing quartz scheduling configuration. -
searchIndexNamePrefix
Prefix for search index name. Index naming template: <prefix><entity_name>. Default prefix is 'search_index_'. -
indexSchemaManagementStrategy
The way of index schema synchronization. -
enqueueIndexAllOnStartupIndexRecreationEntities
List of entities that should be automatically enqueued on startup in case of index recreation. Empty list means all indexed entities. -
minPrefixLength
protected final int minPrefixLengthMinimum length of prefix terms generated by edge N-gram analyzer for prefix search.- See Also:
-
maxPrefixLength
protected final int maxPrefixLengthMaximum length of prefix terms generated by edge N-gram analyzer for prefix search.- See Also:
-
unsupportedSearchStrategyVisible
protected final boolean unsupportedSearchStrategyVisibleWhether the additional search strategy provided by Extended search is visible if there are no index definitions with enabled Extended search. -
wildcardPrefixQueryEnabled
protected final boolean wildcardPrefixQueryEnabledWhether the wildcard query will be used if input search word is longer than prefix maximum length.- See Also:
-
-
Constructor Details
-
SearchProperties
public SearchProperties(@DefaultValue("100") int searchResultPageSize, @DefaultValue("100") int maxSearchPageCount, @DefaultValue("100") int searchReloadEntitiesBatchSize, @DefaultValue("100") int processQueueBatchSize, @DefaultValue("100") int reindexEntityEnqueueBatchSize, @DefaultValue("3") int minPrefixLength, @DefaultValue("8") int maxPrefixLength, @DefaultValue("true") boolean changedEntitiesIndexingEnabled, @DefaultValue("true") boolean useDefaultIndexingQueueProcessingQuartzConfiguration, @DefaultValue("true") boolean useDefaultEnqueueingSessionProcessingQuartzConfiguration, @DefaultValue("true") boolean enqueueIndexAllOnStartupIndexRecreationEnabled, @DefaultValue("false") boolean unsupportedSearchStrategyVisible, @DefaultValue("true") boolean wildcardPrefixQueryEnabled, @DefaultValue("") String enqueueIndexAllOnStartupIndexRecreationEntities, @DefaultValue("search_index_") String searchIndexNamePrefix, @DefaultValue("anyTermAnyField") String defaultSearchStrategy, @DefaultValue("create-or-recreate") String indexSchemaManagementStrategy, @DefaultValue("0/5 * * * * ?") String indexingQueueProcessingCron, @DefaultValue("0/5 * * * * ?") String enqueueingSessionProcessingCron, @DefaultValue SearchProperties.Server server)
-
-
Method Details
-
getSearchResultPageSize
public int getSearchResultPageSize()- See Also:
-
getMaxSearchPageCount
public int getMaxSearchPageCount()- See Also:
-
getSearchReloadEntitiesBatchSize
public int getSearchReloadEntitiesBatchSize()- See Also:
-
getProcessQueueBatchSize
public int getProcessQueueBatchSize()- See Also:
-
getReindexEntityEnqueueBatchSize
public int getReindexEntityEnqueueBatchSize()- See Also:
-
getMinPrefixLength
public int getMinPrefixLength() -
getMaxPrefixLength
public int getMaxPrefixLength() -
isUnsupportedSearchStrategyVisible
public boolean isUnsupportedSearchStrategyVisible() -
isWildcardPrefixQueryEnabled
public boolean isWildcardPrefixQueryEnabled() -
isChangedEntitiesIndexingEnabled
public boolean isChangedEntitiesIndexingEnabled()- See Also:
-
isUseDefaultIndexingQueueProcessingQuartzConfiguration
public boolean isUseDefaultIndexingQueueProcessingQuartzConfiguration() -
isUseDefaultEnqueueingSessionProcessingQuartzConfiguration
public boolean isUseDefaultEnqueueingSessionProcessingQuartzConfiguration() -
getIndexingQueueProcessingCron
- See Also:
-
getEnqueueingSessionProcessingCron
- See Also:
-
getSearchIndexNamePrefix
- See Also:
-
isEnqueueIndexAllOnStartupIndexRecreationEnabled
public boolean isEnqueueIndexAllOnStartupIndexRecreationEnabled() -
getEnqueueIndexAllOnStartupIndexRecreationEntities
-
getDefaultSearchStrategy
- See Also:
-
getServerUrl
- See Also:
-
getServerLogin
- See Also:
-
getServerPassword
- See Also:
-
getServerSslCertificateLocation
- See Also:
-
getServerSslCertificateAlias
- See Also:
-
getServerSslCertificateFactoryType
-
getServerSslKeyStoreType
- See Also:
-
getBulkRequestRefreshPolicy
-
getIndexSchemaManagementStrategy
- See Also:
-
prepareStartupEnqueueingEntities
-