lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Meunier" <vch...@club-internet.fr>
Subject Re: Few questions regarding the design of the Filter class
Date Thu, 23 May 2002 22:20:49 GMT

----- Original Message -----
From: <cutting@lucene.com>
To: <lucene-user@jakarta.apache.org>
Sent: Thursday, May 23, 2002 10:04 PM
Subject: RE: Few questions regarding the design of the Filter class


> > From: Christian Meunier
> >
> > Hi, i have few questions regarding the Filter class.
> >
> > Why this is not an interface ?
>
> No good reason.  Since interfaces have some performance penalties with
most
> JVMs, when I first wrote Lucene I only used interfaces where multiple
> inheritance was required.  In retrospect, I probably should have also used
> them in a few other places that are not performance critical.
>
> Does the use of an abstract class instead of an interface keep you from
> doing something that you need to do?

No it's just a design question ;)
>
> > 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.
Thanks for your answers Doug !

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