lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@lucene.com
Subject RE: Few questions regarding the design of the Filter class
Date Thu, 23 May 2002 22:56:24 GMT
> From: Christian Meunier
> 
> > > From: Christian Meunier
> > >
> > > Why there is not method to get the field on which the filter
> > > is used to restrict the search ?
> >
> > A filter may not always restrict the search to a single 
> > field.  One could
> > construct a filter with arbitrary criteria that may or may 
> > not correspond to document fields.
> 
> Oky  i ll try to think for a good workaround beside recompiling lucene
> hacking the filter class.

A workaround for what?  It's not clear what you're trying to do.

If you need something that's like a Filter, but that operates on a
particular field, then define a subclass of Filter that has a getFieldName()
method, and use that where you're using Filter.

Doug

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