Yes.  Our in-house example is the movie title "The Sound Of Music". Given in
quotes as a phrase this will pull up "anystopword Sound anystopword Music".
For example, "A Sound With Music". Your example is also a test case of ours.
For some Lucenicious reason "six stopwords in a row" does not find anything.

We solved this problem by making a separate indexed field with a simplified
text type: no stopwords. Phrase searches go against the 'rawfield' and word
searches go against it first. You may want to also filter out punctuation or
"Sound Of Music" will not bring up "Sound Of Music!"

Cheers,

Lance Norskog

-----Original Message-----
From: Phillip Farber [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 21, 2008 11:11 AM
To: solr-user@lucene.apache.org
Subject: stopwords and phrase queries


Am I correct that if I index with stop words: "to", "be", "or" and "not" 
then phrase query "to be or not to be" will not retrieve any documents?

Is there any documentation that discusses the interaction of stop words and
phrase queries?  Thanks.


Phil

Reply via email to