ElasticSearch fuzzy Query
Jump to navigation
Jump to search
An ElasticSearch fuzzy Query is an ElasticSearch query that is a fuzzy query.
- …
- Example(s):
{ "fuzzy" : { "user" : { "value" : "ki", "boost" : 1.0, "min_similarity" : 0.5, "prefix_length" : 0 } } }
- Counter-Example(s):
- See: Lucene Query, SOLR Query.
References
2012
- http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-term-query.html
- A fuzzy query that uses similarity based on Levenshtein (edit distance) algorithm. This maps to Lucene’s FuzzyQuery.
Warning: this query is not very scalable with its default prefix length of 0 - in this case, every term will be enumerated and cause an edit score calculation or max_expansions is not set.
- A fuzzy query that uses similarity based on Levenshtein (edit distance) algorithm. This maps to Lucene’s FuzzyQuery.