index-modules.asciidoc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. added[0.90.2]
  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.term_index_interval`::
  32. Set the interval between indexed terms.
  33. Large values cause less memory to be used by a reader / searcher, but
  34. slow random-access to terms. Small values cause more memory to be used
  35. by a reader / searcher, and speed random-access to terms. Defaults to
  36. `128`.
  37. `index.term_index_divisor`::
  38. Subsamples which indexed terms are loaded
  39. into RAM. This has the same effect as `index.term_index_interval` except
  40. that setting must be done at indexing time while this setting can be set
  41. per reader / searcher. When set to N, then one in every
  42. N*termIndexInterval terms in the index is loaded into memory. By setting
  43. this to a value > 1 you can reduce memory usage, at the expense of
  44. higher latency when loading a TermInfo. The default value is 1. Set this
  45. to -1 to skip loading the terms index entirely.
  46. `index.refresh_interval`::
  47. A time setting controlling how often the
  48. refresh operation will be executed. Defaults to `1s`. Can be set to `-1`
  49. in order to disable it.
  50. --
  51. include::index-modules/analysis.asciidoc[]
  52. include::index-modules/allocation.asciidoc[]
  53. include::index-modules/slowlog.asciidoc[]
  54. include::index-modules/merge.asciidoc[]
  55. include::index-modules/store.asciidoc[]
  56. include::index-modules/mapper.asciidoc[]
  57. include::index-modules/translog.asciidoc[]
  58. include::index-modules/cache.asciidoc[]
  59. include::index-modules/fielddata.asciidoc[]
  60. include::index-modules/codec.asciidoc[]
  61. include::index-modules/similarity.asciidoc[]