lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: [jira] Commented: (LUCENE-1424) Add ConstantScorePrefixQuery and ConstantScoreWildcardQuery
Date Mon, 03 Nov 2008 21:49:49 GMT

In favor of new QueryWrapperFilter(new XXXQuery(...))?

Actually you'd probably want to do this (should be faster than big  
BooleanQuery, and, won't hit the clause limit):

   MultiTermQuery q = new XXXQuery(...);
   Filter f = new QueryWrapperFilter(q);

It may be better to keep them around (but delegate using that code  
above) since this code is not immediately obvious and is somewhat  
roundabout?  But I'm not sure how popular these filters are, so I  
could go either way.

Or I suppose we could fix QueryWrapperFilter to notice it's wrapping a  
MultiTermQuery and just ask it directly for the DocIdSet?  In fact I  
think we should do this regardless of whether we deprecate those 3.


Mark Miller wrote:

> Do we want to deprecate all of the Prefix/Range/Wildcard Filter  
> classes?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message