You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2026. It is now read-only.
Paul Danelli edited this page Mar 3, 2022
·
5 revisions
Cross Tenant Search
Introduction
The cross tenant search is designed to link the data stores of multiple tenants in a single additional Solr index.
Implementation
The Search index links to record to its parents tenant by including a key on the record called account_cname_tesim, which is added when indexing a work to Solr.
In order to link the accounts inside of ActiveRecord, we link the search-only accounts to their parent with the use of a has_many relationship, search_accounts.
There is a test to ensure the relationship is available.
Activate the feature
To toggle the feature on or off, you go to the main Account Propriator settings, and at the bottom of the screen is a Feature Flippper.
Migration
For works created before the feature was implemented, there is a Sidekiq Job to migrate them, adding any required data.