We help IT Professionals succeed at work.

Full-Text Searches: Can I disable the noise words filter?

Starnzy
Starnzy asked
on
Medium Priority
1,086 Views
Last Modified: 2007-12-19
I'm still quite new to Full-Text searches and am currently writing a simple search engine for a forum.
I am using the CONTAINSTABLE method and each of my search terms are seperated with 'AND' rather than 'OR'.

If I type in any noise words amongst my search terms, I get an error returned. Is there any way around this? I.e. Can I tell SQL to not worry about Noise words, just let it search on them also if they are entered?

Thanks in advance.
Comment
Watch Question

Commented:
What is the error that is returned ?
CERTIFIED EXPERT
Top Expert 2012

Commented:
>>Is there any way around this? <<
Sure you can delete them from the noise file.  It is just a text file.  However, I suspect there is a better solution.  Try posting your query here.

Author

Commented:
I heard from somewhere that if you delete them from the noise file, at some point they are 'regenerated' by SQL into this text file again?!!
Whether this is complete myth or not I don't know. I will try your suggestion though and see what happens, thanks.
CERTIFIED EXPERT
Top Expert 2012

Commented:
>>at some point they are 'regenerated' by SQL into this text file again?!!<<
Right.  That would be the next time you re-install SQL Server :)

Author

Commented:
This is the error I am getting, even after emptying the contents of 'noise.eng' in the 'CONFIG' folder...

System.Data.SqlClient.SqlException: Execution of a full-text operation failed. A clause of the query contained only ignored words.

In this example I was doing a search which contained the word 'doing'.

Any ideas?
CERTIFIED EXPERT
Top Expert 2012
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2012

Commented:
Any luck?

Author

Commented:
Hi.

I appear to still get 2 different types of error, even after doing a full-population of my full-text catalog.

If I use the word 'AND' as one of my search terms I get the following error:

System.Data.SqlClient.SqlException: Syntax error occurred near ' and AND test2')'. Expected '_NOT, '(', _ISABOUT, _FORMSOF, _STRING, _PREFIX_STRING, '!'' in search condition 'test1 AND and AND test2'.

Also, if I typed in for example the search terms 'doing a year' I got the following error still:

System.Data.SqlClient.SqlException: Execution of a full-text operation failed. A clause of the query contained only ignored words.

Any ideas?

Thanks
CERTIFIED EXPERT
Top Expert 2012

Commented:
Assuming you modified the correct noise file, then I have no idea.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.