2013-08-28 19:24:34 -04:00
|
|
|
[[index-modules]]
|
|
|
|
= Index Modules
|
|
|
|
|
|
|
|
[partintro]
|
|
|
|
--
|
|
|
|
Index Modules are modules created per index and control all aspects
|
|
|
|
related to an index. Since those modules lifecycle are tied to an index,
|
|
|
|
all the relevant modules settings can be provided when creating an index
|
|
|
|
(and it is actually the recommended way to configure an index).
|
|
|
|
|
|
|
|
[float]
|
2013-09-30 17:32:00 -04:00
|
|
|
[[index-modules-settings]]
|
2013-08-28 19:24:34 -04:00
|
|
|
== Index Settings
|
|
|
|
|
|
|
|
There are specific index level settings that are not associated with any
|
|
|
|
specific module. These include:
|
|
|
|
|
|
|
|
`index.refresh_interval`::
|
|
|
|
A time setting controlling how often the
|
|
|
|
refresh operation will be executed. Defaults to `1s`. Can be set to `-1`
|
|
|
|
in order to disable it.
|
|
|
|
|
2014-12-10 22:05:54 -05:00
|
|
|
`index.codec`::
|
2015-02-04 09:43:22 -05:00
|
|
|
|
|
|
|
experimental[]
|
2014-12-10 22:05:54 -05:00
|
|
|
The `default` value compresses stored data with LZ4 compression, but
|
|
|
|
this can be set to `best_compression` for a higher compression ratio,
|
|
|
|
at the expense of slower stored fields performance.
|
|
|
|
|
2014-01-21 09:40:44 -05:00
|
|
|
`index.shard.check_on_startup`::
|
2015-02-04 09:43:22 -05:00
|
|
|
|
|
|
|
experimental[]
|
2015-02-03 00:10:08 -05:00
|
|
|
Should shard consistency be checked upon opening. When corruption is detected,
|
|
|
|
it will prevent the shard from being opened.
|
2015-02-04 09:43:22 -05:00
|
|
|
+
|
2015-02-03 00:10:08 -05:00
|
|
|
When `checksum`, check for physical corruption.
|
|
|
|
When `true`, check for both physical and logical corruption. This is much
|
|
|
|
more expensive in terms of CPU and memory usage.
|
2015-04-26 12:49:15 -04:00
|
|
|
When `fix`, check for both physical and logical corruption, and segments
|
2015-02-03 00:10:08 -05:00
|
|
|
that were reported as corrupted will be automatically removed.
|
|
|
|
Default value is `false`, which performs no checks.
|
2014-01-21 09:40:44 -05:00
|
|
|
|
|
|
|
NOTE: Checking shards may take a lot of time on large indices.
|
|
|
|
|
|
|
|
WARNING: Setting `index.shard.check_on_startup` to `fix` may result in data loss,
|
2015-02-03 00:10:08 -05:00
|
|
|
use with extreme caution.
|
2014-01-21 09:40:44 -05:00
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
--
|
|
|
|
|
|
|
|
include::index-modules/analysis.asciidoc[]
|
|
|
|
|
|
|
|
include::index-modules/allocation.asciidoc[]
|
|
|
|
|
|
|
|
include::index-modules/slowlog.asciidoc[]
|
|
|
|
|
|
|
|
include::index-modules/merge.asciidoc[]
|
|
|
|
|
|
|
|
include::index-modules/store.asciidoc[]
|
|
|
|
|
|
|
|
include::index-modules/mapper.asciidoc[]
|
|
|
|
|
|
|
|
include::index-modules/translog.asciidoc[]
|
|
|
|
|
|
|
|
include::index-modules/cache.asciidoc[]
|
|
|
|
|
2014-08-06 05:54:51 -04:00
|
|
|
include::index-modules/query-cache.asciidoc[]
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
include::index-modules/fielddata.asciidoc[]
|
|
|
|
|
|
|
|
include::index-modules/similarity.asciidoc[]
|
|
|
|
|
|
|
|
|