----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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:[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]>
