Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions docs/reference/index-modules.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
[[index-modules]]
= Index modules

[partintro]
--

Index Modules are modules created per index and control all aspects related to
an index.

Expand Down Expand Up @@ -252,6 +249,23 @@ are ignored for this index.
The maximum length of regex that can be used in Regexp Query.
Defaults to `1000`.


`index.query.default_field`::
+
--
(string or array of strings)
Wildcard (`*`) patterns matching one or more fields. The following query types
search these matching fields by default:

* <<query-dsl-mlt-query>>
* <<query-dsl-multi-match-query>>
* <<query-dsl-query-string-query>>
* <<query-dsl-simple-query-string-query>>

Defaults to `*`, which matches all fields eligible for
<<term-level-queries,term-level queries>>, excluding metadata fields.
--

`index.routing.allocation.enable`::

Controls shard allocation for this index. It can be set to:
Expand Down Expand Up @@ -341,7 +355,6 @@ Other index settings are available in index modules:
<<ilm-settings,{ilm-cap}>>::

Specify the lifecycle policy and rollover alias for an index.
--

include::index-modules/analysis.asciidoc[]

Expand Down
5 changes: 4 additions & 1 deletion docs/reference/query-dsl/mlt-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ for documents `like: "Apple"`, but `unlike: "cake crumble tree"`. The syntax
is the same as `like`.

`fields`::
A list of fields to fetch and analyze the text from.
A list of fields to fetch and analyze the text from. Defaults to the
`index.query.default_field` index setting, which has a default value of `*`. The
`*` value matches all fields eligible for <<term-level-queries,term-level
queries>>, excluding metadata fields.

[discrete]
[[mlt-query-term-selection]]
Expand Down