I am trying to use full-text search in a series of names in my database. This is my first attempt to use full-text search. I am currently taking the search string entered and setting the NEAR clause between each term (i.e., the phrase “Kings of Leon” entered becomes “Kings of NEAR NEAR Leon”).
Unfortunately, I found that this tactic leads to a false negative search result, because the word "from" is dropped by SQL Server when creating indexes, because it is a noise word. Thus, “Kings of Leon” will match correctly, but “Kings of Leon” will not.
My colleague suggests taking all the noise words as defined in MSSQL \ FTData \ noiseENG.txt and putting them in the .Net code so that the noise words can be deleted before the full text search is performed.
Is this the best solution? Is there any automatic magic option that I can change on the SQL server to do this for me? Or maybe just the best solution that doesn't seem hacked?
source share