lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject RE: Lucene Query Structure
Date Tue, 19 Feb 2002 17:19:11 GMT
> From: Halácsy Péter []
> 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? 


> 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.


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

View raw message