开发者

Custom StopWord List In SQL Server 2005 Full-Text-Search

开发者 https://www.devze.com 2022-12-24 02:40 出处:网络
Is there anyway to add some custom sto开发者_JS百科p words to SQL Server 2005?I found the answer:

Is there anyway to add some custom sto开发者_JS百科p words to SQL Server 2005?


I found the answer:

On SQL Server 2005: On SQL 2005 they have the concept of "noise word lists". These are essentially the same thing, but they're stored as text files in the file system. These files have names like "noiseenu.txt" (U.S. English noise word text file) and are located in a subdirectory of your SQL Server instance directory (C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData\, for instance). You can edit it with any text editor and save again. I don't recall whether or not you need to bounce the service afterwards on 2005 (don't recall if the noiseword list is cached in memory, but you may as well bounce it to be sure). Then you have to rebuild your full-text indexes.

On SQL Server 2008: You can create a custom stopword list on SQL 2008 the server will remove the stopwords at index time and when it parses your full-text search queries. All you have to do is specify that your full-text index use the custom stoplist.

0

精彩评论

暂无评论...
验证码 换一张
取 消