Gabriel,
  You can make this search much more efficient as follows: say that you have
a method

public BooleanQuery createQuery(Collection<String> allowedUUIDs);

  that works as you describe.  Then you can easily create a useful reusable
filter as follows:

  Filter filter = new CachingWrapperFilter(new
QueryFilter(createQuery(uuidCollection)));

  this filter will cache BitSets keyed on IndexReader instances, so hang
onto it and use it for
the entire time your uuidCollection doesn't change.

   Hope this helps.

  -jake

On Wed, Feb 27, 2008 at 2:48 AM, Gabriel Landais <[EMAIL PROTECTED]>
wrote:

> h t a écrit :
> > I guess you can implement createBitSet() more effciently by using
> > Filer,but not BooleanQuery
> Hi,
>  thanks for advice, but did you mean Filter or Filer? And even if I
> should use a Filter, I don't really understand how to replace the
> Boolean query :(
>  The boolean query is already very efficient, so if it can be better,
> it's would be great!
> Regards,
>  Gabriel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to