IndexSettingsConfigurator
Inheritance: java.lang.Object
public abstract class IndexSettingsConfigurator
Represents the index settings configurator for each shard in the search network.
Constructors
Constructor | Description |
---|---|
IndexSettingsConfigurator() |
Methods
Method | Description |
---|---|
setUseStopWords(boolean value) | Sets the use stop words flag. |
setUseCharacterReplacements(boolean value) | Sets the use character replacements flag. |
setTextStorageSettings(boolean isUsed, Compression compression) | Sets the text storage settings. |
setIndexType(IndexType indexType) | Sets the index type. |
setSearchThreads(NumberOfThreads numberOfThreads) | Sets the number of search threads. |
completeIndexSettings() | Completes the configuration of the index settings. |
IndexSettingsConfigurator()
public IndexSettingsConfigurator()
setUseStopWords(boolean value)
public abstract IndexSettingsConfigurator setUseStopWords(boolean value)
Sets the use stop words flag.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | The flag value. |
Returns: IndexSettingsConfigurator - The index settings configurator.
setUseCharacterReplacements(boolean value)
public abstract IndexSettingsConfigurator setUseCharacterReplacements(boolean value)
Sets the use character replacements flag.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | The flag value. |
Returns: IndexSettingsConfigurator - The index settings configurator.
setTextStorageSettings(boolean isUsed, Compression compression)
public abstract IndexSettingsConfigurator setTextStorageSettings(boolean isUsed, Compression compression)
Sets the text storage settings.
Parameters:
Parameter | Type | Description |
---|---|---|
isUsed | boolean | The flag of using the text storage in index. |
compression | Compression | The compression level. |
Returns: IndexSettingsConfigurator - The index settings configurator.
setIndexType(IndexType indexType)
public abstract IndexSettingsConfigurator setIndexType(IndexType indexType)
Sets the index type.
Parameters:
Parameter | Type | Description |
---|---|---|
indexType | IndexType | The index type. |
Returns: IndexSettingsConfigurator - The index settings configurator.
setSearchThreads(NumberOfThreads numberOfThreads)
public abstract IndexSettingsConfigurator setSearchThreads(NumberOfThreads numberOfThreads)
Sets the number of search threads.
Parameters:
Parameter | Type | Description |
---|---|---|
numberOfThreads | NumberOfThreads | The number of search threads. |
Returns: IndexSettingsConfigurator - The index settings configurator.
completeIndexSettings()
public abstract Configurator completeIndexSettings()
Completes the configuration of the index settings.
Returns: Configurator - The configurator.