Multimatch query with Fuzzy NEST - ElasticSearch

爱⌒轻易说出口 提交于 2021-02-05 10:47:51

问题


I wrote the following query to check multiple fields from a value and it's work:

    var searchResponse = client.Search<Document>(s => s
        .Query(q => q
        .MultiMatch(a => a
        .Fields(f => f
        .Field(p => p.Attachment.Content)
        .Field(p => p.FileName))
        .Query(queryValue))));

I would achieve the same result (search the queryValue in fields Attachment.Content and FileName) but with the Fuzzy mechanism (for example, if queryValue is "esting" I would get back also a result with filename "testing").

Thanks a lot! C# netCore 3.1

来源:https://stackoverflow.com/questions/62893856/multimatch-query-with-fuzzy-nest-elasticsearch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!