SQL Server Full-Text Search for exact match with fallback

后端 未结 4 796
滥情空心
滥情空心 2021-01-11 12:29

First off there seems to be no way to get an exact match using a full-text search. This seems to be a highly discussed issue when using the full-text search method and there

4条回答
  •  迷失自我
    2021-01-11 12:51

    If got the feeling you don't really like the fuzzy part of the full text search but you do like the performance part.

    Maybe is this a path: if you insist on getting the EXACT match before a weighted match you could try to hash the value. For example 'Toy Story' -> bring to lowercase -> toy story -> Hash into 4de2gs5sa (with whatever hash you like) and perform a search on the hash.

提交回复
热议问题