lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <>
Subject Re: Searching with "1"
Date Sat, 23 Sep 2006 00:47:25 GMT
djd0383 <> wrote on 22/09/2006 17:01:47:
> And why would Lucene be doing that now?  That just doesn't seem to be the
> right thing to do.

This would depend on the analyzer being used.
It puzzles me that you say the user query is "1" but the query that throws
the exception is PrefixQuery.
Do you create the Prefix query programmatically, or do you use QueryParser?
QueryParser would create a prefix query for "1*" but not for "1".
If you list a short snippet of code that you use for the search this would
help, e.g. something like:
    String qtxt = "1";
    QueryParser qp = new QueryParser("fieldName", new StandardAnalyzer());
    Query q = qp.parse(qtxt);

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message