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

StackOverflow https://stackoverflow.com/questions/400366

  •  03-07-2019
  •  | 
  •  

Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top