[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: https://github.com/elastic/elasticsearch/issues/35509
This commit is contained in:
markharwood 2019-10-18 15:02:19 +01:00 committed by James Rodewig
parent 876f4aafac
commit fbd43196a8
1 changed files with 3 additions and 0 deletions

View File

@ -246,3 +246,6 @@ results returned. Defaults to `false`.
`boost`::
Sets the boost value of the whole query. Defaults to `1.0`.
==== Alternative
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`.