index-modules.asciidoc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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-compound-format]]`index.compound_format`::
  15. Should the compound file format be used (boolean setting).
  16. The compound format was created to reduce the number of open
  17. file handles when using file based storage. However, by default it is set
  18. to `false` as the non-compound format gives better performance. It is important
  19. that OS is configured to give Elasticsearch ``enough'' file handles.
  20. See <<file-descriptors>>.
  21. +
  22. Alternatively, `compound_format` can be set to a number between `0` and
  23. `1`, where `0` means `false`, `1` means `true` and a number inbetween
  24. represents a percentage: if the merged segment is less than this
  25. percentage of the total index, then it is written in compound format,
  26. otherwise it is written in non-compound format.
  27. [[index-compound-on-flush]]`index.compound_on_flush`::
  28. Should a new segment (create by indexing, not by merging) be written
  29. in compound format or non-compound format? Defaults to `true`.
  30. This is a dynamic setting.
  31. `index.refresh_interval`::
  32. A time setting controlling how often the
  33. refresh operation will be executed. Defaults to `1s`. Can be set to `-1`
  34. in order to disable it.
  35. `index.shard.check_on_startup`::
  36. Should shard consistency be checked upon opening.
  37. When `true`, the shard will be checked, preventing it from being open in
  38. case some segments appear to be corrupted.
  39. When `fix`, the shard will also be checked but segments that were reported
  40. as corrupted will be automatically removed.
  41. Default value is `false`, which doesn't check shards.
  42. NOTE: Checking shards may take a lot of time on large indices.
  43. WARNING: Setting `index.shard.check_on_startup` to `fix` may result in data loss,
  44. use with caution.
  45. --
  46. include::index-modules/analysis.asciidoc[]
  47. include::index-modules/allocation.asciidoc[]
  48. include::index-modules/slowlog.asciidoc[]
  49. include::index-modules/merge.asciidoc[]
  50. include::index-modules/store.asciidoc[]
  51. include::index-modules/mapper.asciidoc[]
  52. include::index-modules/translog.asciidoc[]
  53. include::index-modules/cache.asciidoc[]
  54. include::index-modules/fielddata.asciidoc[]
  55. include::index-modules/codec.asciidoc[]
  56. include::index-modules/similarity.asciidoc[]