lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <>
Subject Re: MultiFieldQueryParser seems broken... Fix attached.
Date Mon, 04 Oct 2004 15:09:27 GMT
Doug Cutting writes:
> >>
> > 
> > 
> > Yes, the approach there is similar.  I attempted to complete the
> > solution and provide a working replacement for MultiFieldQueryParser.
> But, inspired by that message, couldn't MultiFieldQueryParser just be a 
> subclass of QueryParser that overrides getFieldQuery()?

This wouldn't catch PrefixQueries or RangeQueries, etc., would it?  If
QueryParser.TermQuery() wasn't final, you could just override it (or
fix it to do the right thing).

By the way, I've found a bug in my implementation of
MultiFieldQueryParser.  Single-word queries weren't being expanded
properly.  I've fixed that, and placed a revised copy of the code at  See
my original post at
for instructions on how to use it.  Or just read the code.


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

View raw message