lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "René Hackl" <>
Subject Re: MultiFieldQueryParser seems broken... Fix attached.
Date Wed, 08 Sep 2004 08:30:33 GMT
Hi Bill,

But even if it didn't, the second
problem is that the query formed would be

   +(title:cutting title:lucene) +(author:cutting author:lucene)

That is, if the word "Lucene" was in both the author field and the
title field, the match would fit.  This clearly isn't what the
searcher intended.
AFA my understanding of the query syntax goes, this would be interpreted
as (A OR B) AND (C OR D) which would produce the same set as 
(A OR C) AND (B OR D) == +(title:cutting author:cutting) +(title:lucene
author:lucene). But it would only be true for this special case with 2 terms
and 2 fields.

I reckon there has been a discussion (and solution :-) on how to achieve the
functionality you've been

I'm not sure if this would be the same though.

Best regards,

Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR*
Jetzt zu GMX wechseln und sparen

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

View raw message