lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <DCutt...@grandcentral.com>
Subject RE: Lucene Query Structure
Date Tue, 19 Feb 2002 17:19:11 GMT
> From: Halácsy Péter [mailto:halacsy.peter@axelero.com]
> 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:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message