[email protected]
[Top] [All Lists]

Re: Security filtering from external DB

Subject: Re: Security filtering from external DB
From: "Jake Mannix"
Date: Mon, 3 Mar 2008 19:33:50 -0800
  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

  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.


On Wed, Feb 27, 2008 at 2:48 AM, Gabriel Landais <[email protected]>

> 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]
<Prev in Thread] Current Thread [Next in Thread>