Node access facet

Created on 17 March 2024, 4 months ago
Updated 18 March 2024, 4 months ago

Is there a way to create facet on node access ? I can see node_access_information field is being indexed but if I create a facet on this field, it renders a long list of individual grants. What I'm trying to achieve is a checkbox, that will filter only nodes, that current user has access to. (Not role based). Thanks.

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡ΏCzech Republic roman_pro

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @roman_pro
  • πŸ‡§πŸ‡ͺBelgium borisson_ Mechelen, πŸ‡§πŸ‡ͺ

    The indexing in search api happens on a field basis, and it is usually indexed as the anonymous user. This will need a custom processor to translate the node grants into something useful. I'll keep this open to see if there is more interest in this, but I don't think this should be something we include in facets.

  • πŸ‡¨πŸ‡ΏCzech Republic roman_pro

    Thanks borrison_
    I don't mind creating a custom processor myself, just looking for some hints really. Taking some inspiration from flag_search_api, where they index data per user but I'd rather use already indexed node_grants field if at all possible?

Production build 0.69.0 2024