lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <morus.wal...@tanto-xipolis.de>
Subject QueryParser and stopwords
Date Tue, 20 Jan 2004 14:30:49 GMT
Hi,

I'm currently trying to get rid of query parser problems with stopwords
(depending on the query, there are ArrayIndexOutOfBoundsExceptions,
e.g. for stop AND nonstop where stop is a stopword and nonstop not).

While this isn't hard to fix (I'll enter a bug and patch in bugzilla), 
there's one issue left, I'm not sure how to deal with:

What should the query parser return for a query string containing only
stopwords?

And when I think about this, there's another one:
stop AND NOT nonstop
creates a boolean query, only containing prohibited terms, which
AFAIK cannot be used in a search. How to deal with this?

Currently it returns an empty BooleanQuery.
I think it would be more useful to return null in this case.

Morus

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message