\SiteTreePermissionIndexExtension
Inserts an additional search index based on user permissions for a site tree element.
NOTE: This extension is optional, and requires both the solr search page extension and queued jobs.
@author Nathan Glasl <nathan@silverstripe.com.au>
Synopsis
class SiteTreePermissionIndexExtension
extends DataExtension
{
- // members
- private string $index = 'Groups';
- // methods
- public void updateSolrSearchableFields()
- public void additionalSolrValues()
Hierarchy
Extends
- DataExtension
Members
private
- $index
Methods
public
- additionalSolrValues() — Retrieve the custom search index value for the current site tree element, returning the listing of groups that have access.
- updateSolrSearchableFields() — Retrieve the existing searchable fields, appending our custom search index to enable it.