I sent my implementation to the list a while ago (http://www.mail-archive.com/[email protected]/msg00973.html)
I hope it helps. peter > -----Original Message----- > From: Brian Goetz [mailto:[EMAIL PROTECTED]] > 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:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
