On Sunday, November 23, 2003, at 03:33 PM, Dion Almaer wrote:
2. +field:foo and the QueryParser:

I ran into some problems where using +field:foo was
giving strange
results. When I changed the queries to "... AND field:foo"
everything
was fine.
   Am I missing something there?

Which version of Lucene are you using? There have been some fixes in the query parser of Lucene 1.2, but I don't know precisely which.


I am using 1.3 RC 2.  The AND workaround is fine... just caught me
by surprise.

If you run into the strange results again, try doing a Query.toString("field") to see what QueryParser thought of the query expression. I'd be curious to know more about this issue.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to