Skip to content

Commit 4ae9f6b

Browse files
markharwoodjrodewig
authored andcommitted
[DOCS] Add TermVectors API reference to MLT query docs (#37228)
Adds a reference the use of the TermVectors API following an issue raised about lack of flexibility in the MLT query: #35509
1 parent e70a51f commit 4ae9f6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,6 @@ results returned. Defaults to `false`.
246246

247247
`boost`::
248248
Sets the boost value of the whole query. Defaults to `1.0`.
249+
250+
==== Alternative
251+
To take more control over the construction of a query for similar documents it is worth considering writing custom client code to assemble selected terms from an example document into a Boolean query with the desired settings. The logic in `more_like_this` that selects "interesting" words from a piece of text is also accessible via the <<docs-termvectors,TermVectors API>>. For example, using the termvectors API it would be possible to present users with a selection of topical keywords found in a document's text, allowing them to select words of interest to drill down on, rather than using the more "black-box" approach of matching used by `more_like_this`.

0 commit comments

Comments
 (0)