Java Mailing List Archive

http://www.java2.5341.com/

Home » java-user.lucene »

Using AND with MultiFieldQueryParser

Rafael C. de Almeida

2008-11-13

Replies: Find Java Web Hosting

Author LoginPost Reply
Hello,

I used an Analyzer which removes stopwords when indexing, then I wanted
to do an AND search using MultiFieldQueryParser. So I did this:
 word1 AND stopword AND word2
I thought the stopword would be ignored by the searcher (I use the same
Analyzer to index and search). But instead, I get no results whenever I
have a stopword like that. If I remove the stopword, giving me:
 word1 AND word2
then the search is sucessful. Is that the expected behaviour? Am I
doing something wrong?

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@(protected)
For additional commands, e-mail: java-user-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.