Share via

My search result is not coming as expected. Exact match is not coming on top for Chinese Index and fuzzy search 道南~1

Santosh Singh 0 Reputation points
2024-04-11T12:31:48.9766667+00:00

I am searching (fuzzy) text = 道南~1 in n21mobile_demo index but in the result exact matching records with 道南 are not coming on top and have 0 scores.

Azure AI Search
Azure AI Search

An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.


1 answer

Sort by: Most helpful
  1. Jose Chavarria Vindas 480 Reputation points Microsoft Employee
    2024-04-17T23:18:19.1766667+00:00

    Hello @Santosh Singh thanks for reaching out.

    When you use fuzzy search, when the request is processed each word that it matches becomes a token, so for example searching on something like John*~* Smith*~ could translate into many different tokens such as Johan, Jahn, Smit, etc just to provide a few examples. AI Search won't weight the original token (exact match) of "John Smith" higher than other matched tokens, this seems to be the same case with* 道南, as fuzzy search might be creating many other tokens that come first.

    In order to guarantee that the exact match takes priority, you could modify the query to look like this: (道南)^2 OR (道南~1) that way exact matches are boosted 2x but also including fuzzy search responses.

    If you have any other questions please let me know.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.