Dropping noise words in SQL Server 2005 full text indexing
问题 In a pretty typical scenario, I have a 'Search' text box on my web application which has user input passed directly to a stored procedure which then uses full text indexing to search on two fields in two tables, which are joined using appropriate keys. I am using the CONTAINS predicate to search the fields. Before passing the search string in, I do the following: SET @ftQuery = '"' + REPLACE(@query,' ', '*" OR "') + '*"' Changing the castle to "the*" OR "castle*" , for example. This is