Fuzzy Like This Query - gnuhub/elasticsearch GitHub Wiki
Fuzzy like this query find documents that are "like" provided text by running it against one or more fields.
{
"fuzzy_like_this" : {
"fields" : ["name.first", "name.last"],
"like_text" : "text like this one",
"max_query_terms" : 12
}
}fuzzy_like_this can be shortened to flt.
The fuzzy_like_this top level parameters include:
-
fields: A list of the fields to run the more like this query against. Defaults to the_allfield. -
like_text: The text to find documents like it, required. -
ignore_tf: Should term frequency be ignored. Defaults tofalse. -
max_query_terms: The maximum number of query terms that will be included in any generated query. Defaults to25. -
boost: Sets the boost value of the query. Defaults to1.0.