You maybe could use the HitCollector mechanism for search.  Do your ACL check as you 
add the item to the HitCollector.  If the check fails, then don't add it to the 
Collector.  

>>> [EMAIL PROTECTED] 07/22/04 01:59PM >>>
Hi:

    Maybe this has been asked before.

    Is there a plan to support ACL check on the documents in lucene?
Say I have a customized ACL check module, e.g.:

     boolean ACLCheck(int docID,String user,String password);

     And have some sort of framework to plug in something like that.

    I was looking at the Filter class. I guess I can read the entire
index, for each document, feed it to the authentication module, if
authenticated, bitset the docID and return the BitSet instance. I
sounds very slow for large hits. I guess  I can play with cacheing
etc.

     Any other ideas?

Thanks

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to