Skip to content

Commit 38edcb6

Browse files
authored
[DOCS] Document index.query.default_field index setting (#69922)
1 parent a2f20b7 commit 38edcb6

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

docs/reference/index-modules.asciidoc

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
[[index-modules]]
33
= Index modules
44

5-
[partintro]
6-
--
7-
85
Index Modules are modules created per index and control all aspects related to
96
an index.
107

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

252+
253+
`index.query.default_field`::
254+
+
255+
--
256+
(string or array of strings)
257+
Wildcard (`*`) patterns matching one or more fields. The following query types
258+
search these matching fields by default:
259+
260+
* <<query-dsl-mlt-query>>
261+
* <<query-dsl-multi-match-query>>
262+
* <<query-dsl-query-string-query>>
263+
* <<query-dsl-simple-query-string-query>>
264+
265+
Defaults to `*`, which matches all fields eligible for
266+
<<term-level-queries,term-level queries>>, excluding metadata fields.
267+
--
268+
255269
`index.routing.allocation.enable`::
256270

257271
Controls shard allocation for this index. It can be set to:
@@ -343,7 +357,6 @@ Other index settings are available in index modules:
343357
<<ilm-settings,{ilm-cap}>>::
344358

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

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

docs/reference/query-dsl/mlt-query.asciidoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ for documents `like: "Apple"`, but `unlike: "cake crumble tree"`. The syntax
175175
is the same as `like`.
176176

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

180183
[discrete]
181184
[[mlt-query-term-selection]]

0 commit comments

Comments
 (0)