Fuzzy Like This Field Query - gnuhub/elasticsearch GitHub Wiki
The fuzzy_like_this_field query is the same as the fuzzy_like_this query, except that it runs against a single field. It provides nicer query DSL over the generic fuzzy_like_this query, and support typed fields query (automatically wraps typed fields with type filter to match only on the specific type).
{
"fuzzy_like_this_field" : {
"name.first" : {
"like_text" : "text like this one",
"max_query_terms" : 12
}
}
}fuzzy_like_this_field can be shortened to flt_field.
The fuzzy_like_this_field top level parameters include:
-
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.