WARNING: Version 1.7 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Fuzzy Like This Field Query
editFuzzy Like This Field Query
editDeprecated in 1.6.0.
This query will be removed in Elasticsearch 2.0
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:
Parameter | Description |
---|---|
|
The text to find documents like it, required. |
|
Should term frequency be ignored. Defaults to |
|
The maximum number of query terms that will be
included in any generated query. Defaults to |
|
The fuzziness of the term variants. Defaults
to |
|
Length of required common prefix on variant terms.
Defaults to |
|
Sets the boost value of the query. Defaults to |
|
The analyzer that will be used to analyze the text. Defaults to the analyzer associated with the field. |