Package org.elasticsearch.index
Class IndexSettings
- java.lang.Object
-
- org.elasticsearch.index.IndexSettings
-
public final class IndexSettings extends java.lang.ObjectThis class encapsulates all index level settings and handles settings updates. It's created per index and available to all index level classes and allows them to retrieve the latest updated settings instance. Classes that need to listen to settings updates can register a settings consumer at index creation viaIndexModule.addSettingsUpdateConsumer(Setting, Consumer)that will be called for each settings update.
-
-
Field Summary
Fields Modifier and Type Field Description static Setting<java.lang.Boolean>ALLOW_UNMAPPEDstatic Setting<java.util.List<java.lang.String>>DEFAULT_FIELD_SETTINGstatic java.lang.StringDEFAULT_FIELD_SETTING_KEYstatic TimeValueDEFAULT_GC_DELETESIndex setting to enable / disable deletes garbage collection.static Setting<java.lang.String>DEFAULT_PIPELINEstatic TimeValueDEFAULT_REFRESH_INTERVALstatic Setting<java.lang.String>INDEX_CHECK_ON_STARTUPstatic Setting<TimeValue>INDEX_GC_DELETES_SETTINGstatic java.lang.StringINDEX_MAPPING_SINGLE_TYPE_SETTING_KEYstatic Setting<TimeValue>INDEX_REFRESH_INTERVAL_SETTINGstatic Setting<java.lang.Boolean>INDEX_SEARCH_THROTTLEDMarks an index to be searched throttled.static Setting<java.lang.Long>INDEX_SOFT_DELETES_RETENTION_OPERATIONS_SETTINGControls how many soft-deleted documents will be kept around before being merged away.static Setting<java.lang.Boolean>INDEX_SOFT_DELETES_SETTINGSpecifies if the index should use soft-delete instead of hard-delete for update/delete operations.static Setting<Translog.Durability>INDEX_TRANSLOG_DURABILITY_SETTINGstatic Setting<ByteSizeValue>INDEX_TRANSLOG_FLUSH_THRESHOLD_SIZE_SETTINGstatic Setting<ByteSizeValue>INDEX_TRANSLOG_GENERATION_THRESHOLD_SIZE_SETTINGThe maximum size of a translog generation.static Setting<TimeValue>INDEX_TRANSLOG_RETENTION_AGE_SETTINGControls how long translog files that are no longer needed for persistence reasons will be kept around before being deleted.static Setting<ByteSizeValue>INDEX_TRANSLOG_RETENTION_SIZE_SETTINGControls how many translog files that are no longer needed for persistence reasons will be kept around before being deleted.static Setting<TimeValue>INDEX_TRANSLOG_SYNC_INTERVAL_SETTINGstatic Setting<java.lang.Boolean>INDEX_TTL_DISABLE_PURGE_SETTINGDeprecated.static Setting<java.lang.Boolean>INDEX_WARMER_ENABLED_SETTINGstatic Setting<java.lang.Integer>MAX_ADJACENCY_MATRIX_FILTERS_SETTINGIndex setting describing the maximum number of filters clauses that can be used in an adjacency_matrix aggregation.static Setting<java.lang.Integer>MAX_ANALYZED_OFFSET_SETTINGA setting describing the maximum number of characters that will be analyzed for a highlight request.static Setting<java.lang.Integer>MAX_DOCVALUE_FIELDS_SEARCH_SETTINGIndex setting describing the maximum value of allowed `docvalue_fields`that can be retrieved per search request.static Setting<java.lang.Integer>MAX_INNER_RESULT_WINDOW_SETTINGIndex setting describing the maximum value of from + size on an individual inner hit definition or top hits aggregation.static Setting<java.lang.Integer>MAX_NGRAM_DIFF_SETTINGIndex setting describing for NGramTokenizer and NGramTokenFilter the maximum difference between max_gram (maximum length of characters in a gram) and min_gram (minimum length of characters in a gram).static Setting<java.lang.Integer>MAX_REFRESH_LISTENERS_PER_SHARDThe maximum number of refresh listeners allows on this shard.static Setting<java.lang.Integer>MAX_REGEX_LENGTH_SETTINGThe maximum length of regex string allowed in a regexp query.static Setting<java.lang.Integer>MAX_RESCORE_WINDOW_SETTINGIndex setting describing the maximum size of the rescore window.static Setting<java.lang.Integer>MAX_RESULT_WINDOW_SETTINGIndex setting describing the maximum value of from + size on a query.static Setting<java.lang.Integer>MAX_SCRIPT_FIELDS_SETTINGIndex setting describing the maximum value of allowed `script_fields`that can be retrieved per search request.static Setting<java.lang.Integer>MAX_SHINGLE_DIFF_SETTINGIndex setting describing for ShingleTokenFilter the maximum difference between max_shingle_size and min_shingle_size.static Setting<java.lang.Integer>MAX_SLICES_PER_SCROLLThe maximum number of slices allowed in a scroll requeststatic Setting<java.lang.Integer>MAX_TERMS_COUNT_SETTINGIndex setting describing the maximum number of terms that can be used in Terms Query.static Setting<java.lang.Boolean>QUERY_STRING_ALLOW_LEADING_WILDCARDstatic Setting<java.lang.Boolean>QUERY_STRING_ANALYZE_WILDCARDstatic Setting<java.lang.Boolean>QUERY_STRING_LENIENT_SETTING
-
Constructor Summary
Constructors Constructor Description IndexSettings(IndexMetaData indexMetaData, Settings nodeSettings)Creates a newIndexSettingsinstance.IndexSettings(IndexMetaData indexMetaData, Settings nodeSettings, IndexScopedSettings indexScopedSettings)Creates a newIndexSettingsinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcustomDataPath()Returns the customDataPath for this index, if configured.java.util.List<java.lang.String>getDefaultFields()Returns the default search fields for this index.java.lang.StringgetDefaultPipeline()ByteSizeValuegetFlushThresholdSize()Returns the transaction log threshold size when to forcefully flush the index and clear the transaction log.longgetGcDeletesInMillis()Returns the GC deletes cycle in milliseconds.ByteSizeValuegetGenerationThresholdSize()Returns the generation threshold size.intgetHighlightMaxAnalyzedOffset()Returns the maximum number of chars that will be analyzed in a highlight requestIndexgetIndex()Returns the index this settings object belongs toIndexMetaDatagetIndexMetaData()Returns the current IndexMetaData for this indexIndexSortConfiggetIndexSortConfig()Returns the index sort config that should be used for this index.VersiongetIndexVersionCreated()Returns the version the index was created on.intgetMaxAdjacencyMatrixFilters()Returns the max number of filters in adjacency_matrix aggregation search requestsintgetMaxDocvalueFields()Returns the maximum number of allowed docvalue_fields to retrieve in a search requestintgetMaxInnerResultWindow()Returns the max result window for an individual inner hit definition or top hits aggregation.intgetMaxNgramDiff()Returns the maximum allowed difference between max and min length of ngramintgetMaxRefreshListeners()The maximum number of refresh listeners allows on this shard.intgetMaxRegexLength()The maximum length of regex string allowed in a regexp query.intgetMaxRescoreWindow()Returns the maximum rescore window for search requests.intgetMaxResultWindow()Returns the max result window for search requests, describing the maximum value of from + size on a query.intgetMaxScriptFields()Returns the maximum number of allowed script_fields to retrieve in a search requestintgetMaxShingleDiff()Returns the maximum allowed difference between max and min shingle_sizeintgetMaxSlicesPerScroll()The maximum number of slices allowed in a scroll request.intgetMaxTermsCount()Returns the maximum number of terms that can be used in a Terms Query requestorg.apache.lucene.index.MergePolicygetMergePolicy()Returns the merge policy that should be used for this index.MergeSchedulerConfiggetMergeSchedulerConfig()Returns theMergeSchedulerConfigjava.lang.StringgetNodeName()Returns the current node nameSettingsgetNodeSettings()Returns the node settings.intgetNumberOfReplicas()Returns the number of replicas this index has.intgetNumberOfShards()Returns the number of shards this index has.TimeValuegetRefreshInterval()Returns this interval in which the shards of this index are asynchronously refreshed.IndexScopedSettingsgetScopedSettings()SettingsgetSettings()Returns the settings for this index.longgetSoftDeleteRetentionOperations()Returns the number of extra operations (i.e.Translog.DurabilitygetTranslogDurability()Returns the translog durability for this index.TimeValuegetTranslogRetentionAge()Returns the transaction log retention age which controls the maximum age (time from creation) that translog files will be kept aroundByteSizeValuegetTranslogRetentionSize()Returns the transaction log retention size which controls how much of the translog is kept around to allow for ops based recoveriesTimeValuegetTranslogSyncInterval()Returns the translog sync interval.java.lang.StringgetUUID()Returns the indexes UUID<T> TgetValue(Setting<T> setting)booleanhasCustomDataPath()Returnstrueif the index has a custom data pathbooleanisDefaultAllowUnmappedFields()Returnstrueif queries should be lenient about unmapped fields.booleanisQueryStringAllowLeadingWildcard()Returnstrueif the query string parser should allow leading wildcards.booleanisQueryStringAnalyzeWildcard()Returnstrueif the query string should analyze wildcards.booleanisQueryStringLenient()Returnstrueif query string parsing should be lenient.booleanisSearchThrottled()Returns true if the this index should be searched throttled ie.booleanisSingleType()Returns whether the index enforces at most one type.booleanisSoftDeleteEnabled()Returnstrueif soft-delete is enabled.booleanisWarmerEnabled()Returns true if index warmers are enabled, otherwisefalsestatic booleansame(Settings left, Settings right)Compare the specified settings for equality.voidsetDefaultPipeline(java.lang.String defaultPipeline)booleanupdateIndexMetaData(IndexMetaData indexMetaData)Updates the settings and index metadata and notifies all registered settings consumers with the new settings iff at least one setting has changed.
-
-
-
Field Detail
-
DEFAULT_FIELD_SETTING_KEY
public static final java.lang.String DEFAULT_FIELD_SETTING_KEY
- See Also:
- Constant Field Values
-
DEFAULT_FIELD_SETTING
public static final Setting<java.util.List<java.lang.String>> DEFAULT_FIELD_SETTING
-
QUERY_STRING_LENIENT_SETTING
public static final Setting<java.lang.Boolean> QUERY_STRING_LENIENT_SETTING
-
QUERY_STRING_ANALYZE_WILDCARD
public static final Setting<java.lang.Boolean> QUERY_STRING_ANALYZE_WILDCARD
-
QUERY_STRING_ALLOW_LEADING_WILDCARD
public static final Setting<java.lang.Boolean> QUERY_STRING_ALLOW_LEADING_WILDCARD
-
ALLOW_UNMAPPED
public static final Setting<java.lang.Boolean> ALLOW_UNMAPPED
-
INDEX_TRANSLOG_SYNC_INTERVAL_SETTING
public static final Setting<TimeValue> INDEX_TRANSLOG_SYNC_INTERVAL_SETTING
-
INDEX_TRANSLOG_DURABILITY_SETTING
public static final Setting<Translog.Durability> INDEX_TRANSLOG_DURABILITY_SETTING
-
INDEX_WARMER_ENABLED_SETTING
public static final Setting<java.lang.Boolean> INDEX_WARMER_ENABLED_SETTING
-
INDEX_TTL_DISABLE_PURGE_SETTING
@Deprecated public static final Setting<java.lang.Boolean> INDEX_TTL_DISABLE_PURGE_SETTING
Deprecated.
-
INDEX_CHECK_ON_STARTUP
public static final Setting<java.lang.String> INDEX_CHECK_ON_STARTUP
-
MAX_RESULT_WINDOW_SETTING
public static final Setting<java.lang.Integer> MAX_RESULT_WINDOW_SETTING
Index setting describing the maximum value of from + size on a query. The Default maximum value of from + size on a query is 10,000. This was chosen as a conservative default as it is sure to not cause trouble. Users can certainly profile their cluster and decide to set it to 100,000 safely. 1,000,000 is probably way to high for any cluster to set safely.
-
MAX_SCRIPT_FIELDS_SETTING
public static final Setting<java.lang.Integer> MAX_SCRIPT_FIELDS_SETTING
Index setting describing the maximum value of allowed `script_fields`that can be retrieved per search request. The default maximum of 32 is defensive for the reason that retrieving script fields is a costly operation.
-
MAX_INNER_RESULT_WINDOW_SETTING
public static final Setting<java.lang.Integer> MAX_INNER_RESULT_WINDOW_SETTING
Index setting describing the maximum value of from + size on an individual inner hit definition or top hits aggregation. The default maximum of 100 is defensive for the reason that the number of inner hit responses and number of top hits buckets returned is unbounded. Profile your cluster when increasing this setting.
-
MAX_ANALYZED_OFFSET_SETTING
public static final Setting<java.lang.Integer> MAX_ANALYZED_OFFSET_SETTING
A setting describing the maximum number of characters that will be analyzed for a highlight request. This setting is only applicable when highlighting is requested on a text that was indexed without offsets or term vectors. This setting is defensive as for highlighting larger texts, indexing with offsets or term vectors is recommended. For 6.x the default value is not set or equals to -1.
-
MAX_TERMS_COUNT_SETTING
public static final Setting<java.lang.Integer> MAX_TERMS_COUNT_SETTING
Index setting describing the maximum number of terms that can be used in Terms Query. The default maximum of 65536 terms is defensive, as extra processing and memory is involved for each additional term, and a large number of terms degrade the cluster performance.
-
MAX_NGRAM_DIFF_SETTING
public static final Setting<java.lang.Integer> MAX_NGRAM_DIFF_SETTING
Index setting describing for NGramTokenizer and NGramTokenFilter the maximum difference between max_gram (maximum length of characters in a gram) and min_gram (minimum length of characters in a gram). The default value is 1 as this is default difference in NGramTokenizer, and is defensive as it prevents generating too many index terms.
-
MAX_SHINGLE_DIFF_SETTING
public static final Setting<java.lang.Integer> MAX_SHINGLE_DIFF_SETTING
Index setting describing for ShingleTokenFilter the maximum difference between max_shingle_size and min_shingle_size. The default value is 3 is defensive as it prevents generating too many tokens.
-
MAX_DOCVALUE_FIELDS_SEARCH_SETTING
public static final Setting<java.lang.Integer> MAX_DOCVALUE_FIELDS_SEARCH_SETTING
Index setting describing the maximum value of allowed `docvalue_fields`that can be retrieved per search request. The default maximum of 100 is defensive for the reason that retrieving doc values might incur a per-field per-document seek.
-
MAX_RESCORE_WINDOW_SETTING
public static final Setting<java.lang.Integer> MAX_RESCORE_WINDOW_SETTING
Index setting describing the maximum size of the rescore window. Defaults toMAX_RESULT_WINDOW_SETTINGbecause they both do the same thing: control the size of the heap of hits.
-
MAX_ADJACENCY_MATRIX_FILTERS_SETTING
public static final Setting<java.lang.Integer> MAX_ADJACENCY_MATRIX_FILTERS_SETTING
Index setting describing the maximum number of filters clauses that can be used in an adjacency_matrix aggregation. The max number of buckets produced by N filters is (N*N)/2 so a limit of 100 filters is imposed by default.
-
DEFAULT_REFRESH_INTERVAL
public static final TimeValue DEFAULT_REFRESH_INTERVAL
-
INDEX_REFRESH_INTERVAL_SETTING
public static final Setting<TimeValue> INDEX_REFRESH_INTERVAL_SETTING
-
INDEX_TRANSLOG_FLUSH_THRESHOLD_SIZE_SETTING
public static final Setting<ByteSizeValue> INDEX_TRANSLOG_FLUSH_THRESHOLD_SIZE_SETTING
-
INDEX_TRANSLOG_RETENTION_AGE_SETTING
public static final Setting<TimeValue> INDEX_TRANSLOG_RETENTION_AGE_SETTING
Controls how long translog files that are no longer needed for persistence reasons will be kept around before being deleted. A longer retention policy is useful to increase the chance of ops based recoveries.
-
INDEX_TRANSLOG_RETENTION_SIZE_SETTING
public static final Setting<ByteSizeValue> INDEX_TRANSLOG_RETENTION_SIZE_SETTING
Controls how many translog files that are no longer needed for persistence reasons will be kept around before being deleted. Keeping more files is useful to increase the chance of ops based recoveries.
-
INDEX_TRANSLOG_GENERATION_THRESHOLD_SIZE_SETTING
public static final Setting<ByteSizeValue> INDEX_TRANSLOG_GENERATION_THRESHOLD_SIZE_SETTING
The maximum size of a translog generation. This is independent of the maximum size of translog operations that have not been flushed.
-
DEFAULT_GC_DELETES
public static final TimeValue DEFAULT_GC_DELETES
Index setting to enable / disable deletes garbage collection. This setting is realtime updateable
-
INDEX_SOFT_DELETES_SETTING
public static final Setting<java.lang.Boolean> INDEX_SOFT_DELETES_SETTING
Specifies if the index should use soft-delete instead of hard-delete for update/delete operations.
-
INDEX_SOFT_DELETES_RETENTION_OPERATIONS_SETTING
public static final Setting<java.lang.Long> INDEX_SOFT_DELETES_RETENTION_OPERATIONS_SETTING
Controls how many soft-deleted documents will be kept around before being merged away. Keeping more deleted documents increases the chance of operation-based recoveries and allows querying a longer history of documents. If soft-deletes is enabled, an engine by default will retain all operations up to the global checkpoint.
-
MAX_REFRESH_LISTENERS_PER_SHARD
public static final Setting<java.lang.Integer> MAX_REFRESH_LISTENERS_PER_SHARD
The maximum number of refresh listeners allows on this shard.
-
MAX_SLICES_PER_SCROLL
public static final Setting<java.lang.Integer> MAX_SLICES_PER_SCROLL
The maximum number of slices allowed in a scroll request
-
MAX_REGEX_LENGTH_SETTING
public static final Setting<java.lang.Integer> MAX_REGEX_LENGTH_SETTING
The maximum length of regex string allowed in a regexp query.
-
INDEX_MAPPING_SINGLE_TYPE_SETTING_KEY
public static final java.lang.String INDEX_MAPPING_SINGLE_TYPE_SETTING_KEY
- See Also:
- Constant Field Values
-
DEFAULT_PIPELINE
public static final Setting<java.lang.String> DEFAULT_PIPELINE
-
INDEX_SEARCH_THROTTLED
public static final Setting<java.lang.Boolean> INDEX_SEARCH_THROTTLED
Marks an index to be searched throttled. This means that never more than one shard of such an index will be searched concurrently
-
-
Constructor Detail
-
IndexSettings
public IndexSettings(IndexMetaData indexMetaData, Settings nodeSettings)
Creates a newIndexSettingsinstance. The given node settings will be merged with the settings in the metadata while index level settings will overwrite node settings.- Parameters:
indexMetaData- the index metadata this settings object is associated withnodeSettings- the nodes settings this index is allocated on.
-
IndexSettings
public IndexSettings(IndexMetaData indexMetaData, Settings nodeSettings, IndexScopedSettings indexScopedSettings)
Creates a newIndexSettingsinstance. The given node settings will be merged with the settings in the metadata while index level settings will overwrite node settings.- Parameters:
indexMetaData- the index metadata this settings object is associated withnodeSettings- the nodes settings this index is allocated on.
-
-
Method Detail
-
getDefaultFields
public java.util.List<java.lang.String> getDefaultFields()
Returns the default search fields for this index.
-
isQueryStringLenient
public boolean isQueryStringLenient()
Returnstrueif query string parsing should be lenient. The default isfalse
-
isQueryStringAnalyzeWildcard
public boolean isQueryStringAnalyzeWildcard()
Returnstrueif the query string should analyze wildcards. The default isfalse
-
isQueryStringAllowLeadingWildcard
public boolean isQueryStringAllowLeadingWildcard()
Returnstrueif the query string parser should allow leading wildcards. The default istrue
-
isDefaultAllowUnmappedFields
public boolean isDefaultAllowUnmappedFields()
Returnstrueif queries should be lenient about unmapped fields. The default istrue
-
getSettings
public Settings getSettings()
Returns the settings for this index. These settings contain the node and index level settings where settings that are specified on both index and node level are overwritten by the index settings.
-
getIndex
public Index getIndex()
Returns the index this settings object belongs to
-
getUUID
public java.lang.String getUUID()
Returns the indexes UUID
-
hasCustomDataPath
public boolean hasCustomDataPath()
Returnstrueif the index has a custom data path
-
customDataPath
public java.lang.String customDataPath()
Returns the customDataPath for this index, if configured.nullo.w.
-
getIndexVersionCreated
public Version getIndexVersionCreated()
Returns the version the index was created on.- See Also:
Version.indexCreated(Settings)
-
getNodeName
public java.lang.String getNodeName()
Returns the current node name
-
getIndexMetaData
public IndexMetaData getIndexMetaData()
Returns the current IndexMetaData for this index
-
getNumberOfShards
public int getNumberOfShards()
Returns the number of shards this index has.
-
getNumberOfReplicas
public int getNumberOfReplicas()
Returns the number of replicas this index has.
-
isSingleType
public boolean isSingleType()
Returns whether the index enforces at most one type.
-
getNodeSettings
public Settings getNodeSettings()
Returns the node settings. The settings returned fromgetSettings()are a merged version of the index settings and the node settings where node settings are overwritten by index settings.
-
updateIndexMetaData
public boolean updateIndexMetaData(IndexMetaData indexMetaData)
Updates the settings and index metadata and notifies all registered settings consumers with the new settings iff at least one setting has changed.- Returns:
trueiff any setting has been updated otherwisefalse.
-
same
public static boolean same(Settings left, Settings right)
Compare the specified settings for equality.- Parameters:
left- the left settingsright- the right settings- Returns:
- true if the settings are the same, otherwise false
-
getTranslogDurability
public Translog.Durability getTranslogDurability()
Returns the translog durability for this index.
-
isWarmerEnabled
public boolean isWarmerEnabled()
Returns true if index warmers are enabled, otherwisefalse
-
getTranslogSyncInterval
public TimeValue getTranslogSyncInterval()
Returns the translog sync interval. This is the interval in which the transaction log is asynchronously fsynced unless the transaction log is fsyncing on every operations
-
getRefreshInterval
public TimeValue getRefreshInterval()
Returns this interval in which the shards of this index are asynchronously refreshed.-1means async refresh is disabled.
-
getFlushThresholdSize
public ByteSizeValue getFlushThresholdSize()
Returns the transaction log threshold size when to forcefully flush the index and clear the transaction log.
-
getTranslogRetentionSize
public ByteSizeValue getTranslogRetentionSize()
Returns the transaction log retention size which controls how much of the translog is kept around to allow for ops based recoveries
-
getTranslogRetentionAge
public TimeValue getTranslogRetentionAge()
Returns the transaction log retention age which controls the maximum age (time from creation) that translog files will be kept around
-
getGenerationThresholdSize
public ByteSizeValue getGenerationThresholdSize()
Returns the generation threshold size. As sequence numbers can cause multiple generations to be preserved for rollback purposes, we want to keep the size of individual generations from growing too large to avoid excessive disk space consumption. Therefore, the translog is automatically rolled to a new generation when the current generation exceeds this generation threshold size.- Returns:
- the generation threshold size
-
getMergeSchedulerConfig
public MergeSchedulerConfig getMergeSchedulerConfig()
Returns theMergeSchedulerConfig
-
getMaxResultWindow
public int getMaxResultWindow()
Returns the max result window for search requests, describing the maximum value of from + size on a query.
-
getMaxInnerResultWindow
public int getMaxInnerResultWindow()
Returns the max result window for an individual inner hit definition or top hits aggregation.
-
getMaxAdjacencyMatrixFilters
public int getMaxAdjacencyMatrixFilters()
Returns the max number of filters in adjacency_matrix aggregation search requests
-
getMaxRescoreWindow
public int getMaxRescoreWindow()
Returns the maximum rescore window for search requests.
-
getMaxDocvalueFields
public int getMaxDocvalueFields()
Returns the maximum number of allowed docvalue_fields to retrieve in a search request
-
getMaxNgramDiff
public int getMaxNgramDiff()
Returns the maximum allowed difference between max and min length of ngram
-
getMaxShingleDiff
public int getMaxShingleDiff()
Returns the maximum allowed difference between max and min shingle_size
-
getHighlightMaxAnalyzedOffset
public int getHighlightMaxAnalyzedOffset()
Returns the maximum number of chars that will be analyzed in a highlight request
-
getMaxTermsCount
public int getMaxTermsCount()
Returns the maximum number of terms that can be used in a Terms Query request
-
getMaxScriptFields
public int getMaxScriptFields()
Returns the maximum number of allowed script_fields to retrieve in a search request
-
getGcDeletesInMillis
public long getGcDeletesInMillis()
Returns the GC deletes cycle in milliseconds.
-
getMergePolicy
public org.apache.lucene.index.MergePolicy getMergePolicy()
Returns the merge policy that should be used for this index.
-
getValue
public <T> T getValue(Setting<T> setting)
-
getMaxRefreshListeners
public int getMaxRefreshListeners()
The maximum number of refresh listeners allows on this shard.
-
getMaxSlicesPerScroll
public int getMaxSlicesPerScroll()
The maximum number of slices allowed in a scroll request.
-
getMaxRegexLength
public int getMaxRegexLength()
The maximum length of regex string allowed in a regexp query.
-
getIndexSortConfig
public IndexSortConfig getIndexSortConfig()
Returns the index sort config that should be used for this index.
-
getScopedSettings
public IndexScopedSettings getScopedSettings()
-
getDefaultPipeline
public java.lang.String getDefaultPipeline()
-
setDefaultPipeline
public void setDefaultPipeline(java.lang.String defaultPipeline)
-
isSoftDeleteEnabled
public boolean isSoftDeleteEnabled()
Returnstrueif soft-delete is enabled.
-
getSoftDeleteRetentionOperations
public long getSoftDeleteRetentionOperations()
Returns the number of extra operations (i.e. soft-deleted documents) to be kept for recoveries and history purpose.
-
isSearchThrottled
public boolean isSearchThrottled()
Returns true if the this index should be searched throttled ie. using theThreadPool.Names.SEARCH_THROTTLEDthread-pool
-
-