This is not the official recommendation, but I'd suggest you are least consider: http://issues.apache.org/bugzilla/show_bug.cgi?id=32674
If you're not using Java 1.5 and you decide you want to use it, you'd need to take out those dependencies. If you improve it, please share. Chuck > -----Original Message----- > From: Christiaan Fluit [mailto:[EMAIL PROTECTED] > Sent: Monday, December 20, 2004 2:51 PM > To: Lucene Users List > Subject: Re: determination of matching hits > > ok, I feel a bit stupid now ;) Turns out this issue has been discussed a > while ago on both mailing lists and I even participated in one of > them... shame on me. > > The problem is indeed in how MFQP parses my query: the query A -B > becomes: > > (text:A -text:B) (title:A -title:B) (path:A -path:B) (summary:A > -summary:B) (agent:A -agent:B) > > whereas I intuitively expexted it to be evaluated as "A in any field and > not B in any field". When I use a normal QueryParser and let it use a > single field only, everything works as expected. > > Browsing the lists archives I see that there were some efforts from > different people in solving this issue, but I'm a bit confused about the > final outcome. Was this solved in the MFQP in 1.4.3? If not, what > alternative implementation of MFPQ can I currently use best? > > > Kind regards, > > Chris > -- > > Erik Hatcher wrote: > > Christian, > > > > Please simplify your situation. Use a plain TermQuery for "B" and see > > what is returned. Then use a simple BooleanQuery for "A -B". I > suspect > > MultiFieldQueryParser is the culprit. What does the toString of the > > generated Query return? MFQP is known to be trouble, and an overhaul > to > > it has been contributed recently. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
