lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee Mallabone" <>
Subject Re: Highlighting terms, new white paper
Date Tue, 16 Oct 2001 12:54:49 GMT
Dear Maik,

> Hi, I just wanted to let you know that I've set up a new white paper
> along with complete source code. The new code also takes care of the new
> Query subclasses PrefixQuery, RangeQuery and MultiTermQuery.

This looks fantastic - a great piece of documentation, thanks a lot!

However, when I enter a wildcard search ("wo?d" or "woo*" both cause the
error with my index), I get a NullPointerException with this trace:

 at misc.LuceneTools.getTermsFromMultiTermQuery(
 at misc.LuceneTools.getTerms(
 at misc.LuceneTools.getTermsFromBooleanQuery(
 at misc.LuceneTools.getTerms(
 at javax.servlet.http.HttpServlet.service(

Do you ever see anything like this, as I'm a little baffled as to the

I made a tiny modification to check for enum == null in the finally block of
MultiTermQuery.getQuery(), but I get the feeling 'enum' should never be null
and that I'm doing the wrong thing...

Do you have any advice on how to get this to work?

Kind regards,

Lee Mallabone

View raw message