I am trying to match dashes (and other symbols) in my elastic query.
It is fuzzysearch on all the fields using default whitespace analyzer.
My query:
function_score: { query: { multi_match: { query: string analyzer: "whitespace", fuzziness: 1 } } } However this has unexpected results with dash characters. E.x. Central-Park doesnt work with this. Or
Dashes only work well when I use a phrase match and strip out the double quotes. But there is no fuzziness.
Does anyone know how I can get the fuzzysearch normally with dashes please?
https://stackoverflow.com/questions/65605120/elastic-multimatch-string-with-dash-or-other-symbol January 07, 2021 at 08:30AM
没有评论:
发表评论