Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an easy way to make Solr reference different indexes based on a set of credentials submitted with the request?

Tags:

solr

I'd like to have a single instance of Solr, protected by some sort of authentication, that operated against different indexes based on the credentials used for that authentication. The type of authentication is flexible, although I'd prefer to work with open standards (existing or emerging), if possible.

The core problem I'm attempting to solve is that different users of the application (potentially) have access to different data stored in it, and a user should not be able to search over inaccessible data. Building an index for each user seems the easiest way to guarantee that one user doesn't see forbidden data. Is there, perhaps, an easier way? One that would obviate the need for Solr to have a way to map users to indexes?

Thanks.

like image 651
Hank Gay Avatar asked Dec 30 '08 14:12

Hank Gay


1 Answers

The Solr guys have a pretty exhaustive overview of what is possible, see http://wiki.apache.org/solr/MultipleIndexes

like image 95
mark Avatar answered Oct 22 '22 07:10

mark