I need a query using match_phrase along with fuzzy matching. However I'm not able to find any documentation to construct such a query. Also, when I try combining the queries(one within another), it throws errors. Is it possible to construct such a query?
相关问题
- not found value index error on elastic4s
- Issues when replicating from couchbase bucket to e
- Is there a way to sort an elasticsearch _score by
- failed to send join request to master
- Multi match boolean boost
相关文章
- es 单字段多分词器时,textField.keyword无法高亮
- ElasticSearch: How to search for a value in any fi
- What are the disadvantages of ElasticSearch Doc Va
- NoNodeAvailableException[None of the configured no
- Types cannot be provided in put mapping requests,
- Elasticsearch cluster 'master_not_discovered_e
- Does AWS RDS encryption with KMS affect performanc
- Locality-sensitive hashing - Elasticsearch
You would need to make use of Span Queries.
The below query would perform phrase match+fuzzy query for
champions league
say for e.g. on a sample fieldname
which is of typetext
If you'd want multiple fields, then add another
must
clause.Notice I've mentioned
slop:0
andin_order:true
which would do exact phrase match, while you achieve fuzzy behaviour usingfuzzy
queries insidematch
query.Sample Documents
Span Query:
Response:
Let me know if this helps!