lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Secure Server index
Date Fri, 02 Sep 2005 20:54:55 GMT
Hello,

Valmir, I'm replying to java-user@ list, as it's better for this type
of questions.

Lucene has no built-in security features.  Some people use Lucene's
Filters to accomplish show/hide-type security.  If you have a copy of
the Lucene book, you'll see that covered in section 5.5.3 (
http://www.lucenebook.com/search?query=security+filter )

Basically, you can create an index that has field(s) with a set of
different values.  Then, you create (and probably cache) a Filter for
documents that have a given value (e.g. a Filter for all documents that
have the security field value of "admin", another Filter for all
documents that have the security field value of "guest", etc.).  Then,
when you search, you can use this Filter to show only one set of
documents.  

You can download Lucene in Action code and look at:
./src/lia/advsearching/SecurityFilterTest.java

Otis

--- Valmir Mac&#225;rio <valmirmacario@gmail.com> wrote:

>  Hi, i'm new lucenes' developer and i wolud like to known if lucene
> or nuch 
> suports some security configuration. I would like to keep hide some 
> information for public acces and configure this hide acces for people
> wich 
> has permission to acces this information. How i can do that? I
> apreciate if 
> someone can help-me. 
> 
> Thank you
> 
> Valmir
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message