Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

HykuAddons: Cross Tenant Search

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. image

Migration

For works created before the feature was implemented, there is a Sidekiq Job to migrate them, adding any required data.

Clone this wiki locally