简体   繁体   English

SQL Server 2005全文搜索 - 我可以搜索正斜杠字符吗?

[英]SQL Server 2005 Full-Text Search - can I search for forward-slash characters?

I'm trying to use SQL Server 2005's Full-Text Search to find single forward-slash characters within my indexed column, without success. 我正在尝试使用SQL Server 2005的全文搜索在我的索引列中查找单个正斜杠字符,但没有成功。

Can anyone tell me if this is possible at all? 任何人都可以告诉我这是否可行? Example: 例:

In my CentralSearchCache table, the SearchData column contains a row with the text "This/string/contains/forward/slashes". 在我的CentralSearchCache表中, SearchData列包含一个文本为“This / string / contains / forward / slashes”的行。

This query: 这个查询:

SELECT * FROM FREETEXTTABLE(CentralSearchCache, SearchData, 'forward/slashes')

returns data, whereas this query: 返回数据,而此查询:

SELECT * FROM FREETEXTTABLE(CentralSearchCache, SearchData, '/')

returns nothing. 没有回报。 Is there any way of finding rows that contain one or more forward-slash characters? 有没有办法找到包含一个或多个正斜杠字符的行?

Many thanks. 非常感谢。

Most likely NOT. 很可能不是。 Full TEXT search is for TEXT. 完整的TEXT搜索适用于TEXT。 It is not possible to search for text delimiters and even specific words that are "kill words" (like "in", "on" etc. - that are happening way too often and that every non-trivial text will have anyway). 不可能搜索文本分隔符,甚至是“杀词”的特定单词(如“in”,“on”等等 - 这种情况经常发生,而且每个非平凡的文本都会有。)

Whther or not "/" is filtered out is a question, bit I would somehow bet it is. 无论“/”是否被过滤掉都是一个问题,我会以某种方式下注它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM