SOLR Permissions / Filtering Results depending on Access Rights

前端 未结 6 1972
北恋
北恋 2021-02-07 06:48

For example I have Documents A, B, C. User 1 must only be able to see Documents A, B. User 2 must only be able to see Document C. Is it possible to do it in SOLR without filteri

6条回答
  •  轮回少年
    2021-02-07 07:35

    You can implement your security model using Solr's PostFilter. For more information see http://searchhub.org/2012/02/22/custom-security-filtering-in-solr/

    Note: you should probably cache your access rights otherwise performance will be terrible.

提交回复
热议问题