Security (aka Permissions) and Lucene - How ? Should it be done?

后端 未结 4 1977
你的背包
你的背包 2020-12-13 04:42

First some background to my question.

  • Individual entities can have read Permissions.
  • If a user fails a read permission check they cant see th
4条回答
  •  一整个雨季
    2020-12-13 05:47

    It depends on the number of different security groups that are relevant in your context and how the security applies to your indexed data.

    We had a similar issue which we solved the following way: When indexing we added the allowed groups to the document and when searching we added a boolean query with the groups the user was a member of. That performed well in our scenario.

提交回复
热议问题