我可以选择忽略SQL Server 2005中全文查询中的tsENU.xml同义词库文件吗?
IF @x = 0 THEN
BEGIN
SELECT FROM FREETEXTTABLE(use subtitutions and expansions in thesuarus)
END
ELSE
BEGIN
SELECT FROM FREETEXTTABLE(just match based on the exact query terms, no thesuaurs)
END
答案 0 :(得分:0)
将第二个查询的搜索值包含在引号中。根据{{3}}:
FREETEXTTABLE (table , { column_name | (column_list) | * } , 'freetext_string' [ ,LANGUAGE language_term ] [ ,top_n_by_rank ] )
freetext_string是wordbroken, 阻止,并通过了 词库。如果freetext_string是 用双引号括起来,a 而是执行短语匹配; 词干和词库不是 进行。