Discussion:
Any idea how to avoid "The query contained only ignored words" exception?
(too old to reply)
s***@gmail.com
2006-07-06 19:21:35 UTC
Permalink
I understand this exception is caused by my query contains only noise
words, which are stored in noise.eng or sth similar.

The question is about how I can avoid the exception?

Then I assume I have to scan the input query to filter the noise word.
I think it's silly, because Indexing server will scan the file and
filter the query again! It's like doing a duplicate work.
Jeff Cochran
2006-07-07 23:39:27 UTC
Permalink
Post by s***@gmail.com
I understand this exception is caused by my query contains only noise
words, which are stored in noise.eng or sth similar.
The question is about how I can avoid the exception?
Stop using queries that contain only ignored words. Okay, it's
obvious, but that's what you need to do.

Jeff
Deneb
2006-07-10 12:46:32 UTC
Permalink
Hello,

You could copy the noise word content into a new table in your database
(or XML file) and then scan the searched expression. If it contains
only noise words, you could add a dummy word to the expression so the
search returns nothing. (for example the expression "a the an" would
become "a the an foobar").

That's how I do it anyway. There may exists better solutions.

Hope this helps

François
Post by s***@gmail.com
I understand this exception is caused by my query contains only noise
words, which are stored in noise.eng or sth similar.
The question is about how I can avoid the exception?
Then I assume I have to scan the input query to filter the noise word.
I think it's silly, because Indexing server will scan the file and
filter the query again! It's like doing a duplicate work.
Deneb
2006-07-10 12:50:42 UTC
Permalink
err, just to avoid confusion, my first sentence should read "You could
copy the noise words FILE content into a new table..."
Post by Deneb
Hello,
You could copy the noise word content into a new table in your database
(or XML file) and then scan the searched expression. If it contains
only noise words, you could add a dummy word to the expression so the
search returns nothing. (for example the expression "a the an" would
become "a the an foobar").
That's how I do it anyway. There may exists better solutions.
Hope this helps
François
Post by s***@gmail.com
I understand this exception is caused by my query contains only noise
words, which are stored in noise.eng or sth similar.
The question is about how I can avoid the exception?
Then I assume I have to scan the input query to filter the noise word.
I think it's silly, because Indexing server will scan the file and
filter the query again! It's like doing a duplicate work.
Loading...