Re: Security filtering from external DB

2008-03-05 Thread Gabriel Landais
Jake Mannix a écrit : Gabriel, You can make this search much more efficient as follows: say that you have a method public BooleanQuery createQuery(Collection allowedUUIDs); that works as you describe. Then you can easily create a useful reusable filter as follows: Filter filter = new Ca

Re: Security filtering from external DB

2008-03-03 Thread Jake Mannix
Gabriel, You can make this search much more efficient as follows: say that you have a method public BooleanQuery createQuery(Collection allowedUUIDs); that works as you describe. Then you can easily create a useful reusable filter as follows: Filter filter = new CachingWrapperFilter(new Q

Re: Security filtering from external DB

2008-02-27 Thread Gabriel Landais
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

Re: Security filtering from external DB

2008-02-26 Thread h t
I guess you can implement createBitSet() more effciently by using Filer,but not BooleanQuery 2008/2/25, Gabriel Landais <[EMAIL PROTECTED]>: > > Gabriel Landais a écrit : > > > How to create a Filter for a field in Collection? > > First, split Collection in Collection with > > BooleanQuery.maxCl

Re: Security filtering from external DB

2008-02-25 Thread Gabriel Landais
Gabriel Landais a écrit : How to create a Filter for a field in Collection? First, split Collection in Collection with BooleanQuery.maxClauseCount items maximum in each collection. For each collection : create a BooleanQuery with a TermQuery for each String. perform a search with a HitCollect

Security filtering from external DB

2008-02-22 Thread Gabriel Landais
Hello, we have chosen to use Lucene as the metadata database for a project. Everything works great, from indexing to multi-threading search. Also, we have chosen to split storage and security. It works great, except when we come to filtering. I have understood that Filter should set bits on docu