> From: Hal�csy P�ter [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 19, 2002 8:49 AM > To: Lucene Developers List; Lucene Users List > Subject: RE: Lucene Query Structure > > The queryParser of Lucene implies OR logic if no operator > found in the query, doesn't it?
Yes. > How could I modify the queryParser to implement > default AND logic? I haven't tested this, but it should be as simple as changing line 318 of QueryParser.jj to: int ret = MOD_REQ; Unfortunately, I think this would end up disabling OR, so the proper change is more complex, requiring some changes to the addClause() method. This should also be something that folks can turn on and off. Doug -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
