İ have a problem with contains function, when i search with like '%ZAM%' operator, it finds all word that contains ZAM like ZAMANLAMA AZAMI ZAM and etc.. but when I use fts index contains function, it just find ZAM ZAMANLAMA but it doesnt find AZAMI or 123ZAM789. I have also tried CONTAINS (YourColumn, ' "ZAM" ' ) but it doesn't work. Please help me , fts is very fast but it could not find all contains like '%%' operator what should I do ?
2条答案
按热度按时间zzwlnbp81#
SQL Server Fulltext Search (Version 2022) does not support postfix search, like
'"*zam"'
.https://dba.stackexchange.com/a/230067
https://learn.microsoft.com/en-us/sql/relational-databases/search/query-with-full-text-search
qgelzfjb2#
You can use "*" before in contain syntax same as like operator . but you need to use double quote before and after the search string. Try this query once.
(OR)