Skip to content

Commit a44e17f

Browse files
committed
[DOCS] Replace mention of string field type with text and keyword
Closes #25713
1 parent 57e20f3 commit a44e17f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ analyzes it, usually using the same analyzer at the field, then selects the
112112
top K terms with highest tf-idf to form a disjunctive query of these terms.
113113

114114
IMPORTANT: The fields on which to perform MLT must be indexed and of type
115-
`string`. Additionally, when using `like` with documents, either `_source`
116-
must be enabled or the fields must be `stored` or store `term_vector`. In
117-
order to speed up analysis, it could help to store term vectors at index time.
115+
`text` or `keyword``. Additionally, when using `like` with documents, either
116+
`_source` must be enabled or the fields must be `stored` or store
117+
`term_vector`. In order to speed up analysis, it could help to store term
118+
vectors at index time.
118119

119120
For example, if we wish to perform MLT on the "title" and "tags.raw" fields,
120121
we can explicitly store their `term_vector` at index time. We can still

0 commit comments

Comments
 (0)