You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Bill Janssen <ja...@parc.com> on 2006/01/05 03:31:29 UTC

multi-field query parser with AND operator?

I've got a some code developed for Lucene 1.4.1, that works around the
problem of having both (1) multiple default fields, and (2) the AND
operator for query elements.  In 1.4.1, MultiFieldQueryParser
effectively only allowed the OR operator.

I'm wondering if this has changed in 1.9.  Will I be able to get rid
of this work-around, and use a standard Lucene-provided class to
achieve what my hand-written code now achieves?

If so, it will simplify my move to PyLucene a great deal.

Bill

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


Re: multi-field query parser with AND operator?

Posted by Daniel Naber <lu...@danielnaber.de>.
On Donnerstag 05 Januar 2006 03:31, Bill Janssen wrote:

> I've got a some code developed for Lucene 1.4.1, that works around the
> problem of having both (1) multiple default fields, and (2) the AND
> operator for query elements.  In 1.4.1, MultiFieldQueryParser
> effectively only allowed the OR operator.
>
> I'm wondering if this has changed in 1.9.

Yes, this has been fixed in 1.9.

Regards
 Daniel

-- 
http://www.danielnaber.de

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