index-modules.asciidoc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [[index-modules]]
  2. = Index Modules
  3. [partintro]
  4. --
  5. Index Modules are modules created per index and control all aspects
  6. related to an index. Since those modules lifecycle are tied to an index,
  7. all the relevant modules settings can be provided when creating an index
  8. (and it is actually the recommended way to configure an index).
  9. [float]
  10. [[index-modules-settings]]
  11. == Index Settings
  12. There are specific index level settings that are not associated with any
  13. specific module. These include:
  14. `index.refresh_interval`::
  15. A time setting controlling how often the
  16. refresh operation will be executed. Defaults to `1s`. Can be set to `-1`
  17. in order to disable it.
  18. `index.codec`::
  19. experimental[]
  20. The `default` value compresses stored data with LZ4 compression, but
  21. this can be set to `best_compression` for a higher compression ratio,
  22. at the expense of slower stored fields performance.
  23. `index.shard.check_on_startup`::
  24. experimental[]
  25. Should shard consistency be checked upon opening. When corruption is detected,
  26. it will prevent the shard from being opened.
  27. +
  28. When `checksum`, check for physical corruption.
  29. When `true`, check for both physical and logical corruption. This is much
  30. more expensive in terms of CPU and memory usage.
  31. When `fix`, check for both physical and logical corruption, and segments
  32. that were reported as corrupted will be automatically removed.
  33. Default value is `false`, which performs no checks.
  34. NOTE: Checking shards may take a lot of time on large indices.
  35. WARNING: Setting `index.shard.check_on_startup` to `fix` may result in data loss,
  36. use with extreme caution.
  37. --
  38. include::index-modules/analysis.asciidoc[]
  39. include::index-modules/allocation.asciidoc[]
  40. include::index-modules/slowlog.asciidoc[]
  41. include::index-modules/merge.asciidoc[]
  42. include::index-modules/store.asciidoc[]
  43. include::index-modules/mapper.asciidoc[]
  44. include::index-modules/translog.asciidoc[]
  45. include::index-modules/cache.asciidoc[]
  46. include::index-modules/query-cache.asciidoc[]
  47. include::index-modules/fielddata.asciidoc[]
  48. include::index-modules/similarity.asciidoc[]