Solr Security

Last modified by Thomas Mortagne on 2022/05/02 00:06

cogInsert in the Solr search core a custom field containing all the groups which have view right on the document
Developed by

Thomas Mortagne

Active Installs7
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager


This extension automatically inject in the Solr search core a field "allowed" and populate and update it with the list of groups allowed to view the each document.

It can then be used in a rest request to directly request documents that a specific group or groups can view.

If a remote Solr is used and the Solr user does not have write permission on the "xwiki" schema, the "allowed" field will need to be added by hand in the file managed-schema using the following format:

<field name="allowed" type="string" multiValued="true"/> 

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Release Notes






Dependencies for this extension (org.xwiki.contrib:solrsecurity 1.0.3):


Get Connected