lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul <>
Subject QueryParser, default operator
Date Wed, 29 Dec 2004 17:41:47 GMT
the following code
 QueryParser qp = new QueryParser("itemContent", analyzer);
 Query query = qp.parse(line, "itemContent", analyzer);
doesn't produce the expected result because a query "foo bar" results in:
 itemContent:foo itemContent:bar
where as a "foo AND bar" results in
 +itemContent:foo +itemContent:bar

If I understand the default operator correctly than the first query
should have been expanded to the same as the latter one, isn't it?

thanks a lot!

P.S. I sent the mail yesterday as well, but I didn't see it in the
mailinglist, I hope it doesn't appear twice now.

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

View raw message