lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Halácsy Péter <halacsy.pe...@axelero.com>
Subject RE: query parser deafults
Date Thu, 23 May 2002 07:14:52 GMT
I sent my implementation to the list a while ago (http://www.mail-archive.com/lucene-dev@jakarta.apache.org/msg00973.html)

I hope it helps.

peter

> -----Original Message-----
> From: Brian Goetz [mailto:brian@quiotix.com]
> Sent: Tuesday, May 21, 2002 11:00 PM
> To: Lucene Users List
> Subject: Re: query parser deafults
> 
> 
> > I've been looking at the query parser source code and have come to a
> > loose end.
> 
> Not surprising!  Many people have a hard time wrapping their 
> head around
> parsers; the logic is not straightforward.  
> 
> > I'm attempting to modify the query parser so that all terms default
> > to required.
> 
> First, are you sure you want to do this?  The search engine will rank
> documents that contain all the terms above documents 
> containing only some.
> 
> Anyway, what you want is to change the calls to addClause() to include
> the modifier MOD_REQ; this wil make all terms required.
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:lucene-user-help@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message