From bc0979b90bb8bb594a590286f6d36d09cf97587f Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Fri, 1 Mar 2024 14:20:44 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20uri=20to=20string=20creato?= =?UTF-8?q?r=20to=20creator=5Fsim=20also?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The facets still showed the URI but by setting `creator_sim` to the same value will fix this. Ref: - https://github.com/scientist-softserv/utk-hyku/issues/592 --- app/indexers/collection_indexer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/indexers/collection_indexer.rb b/app/indexers/collection_indexer.rb index 7fc32388..2a7d63da 100644 --- a/app/indexers/collection_indexer.rb +++ b/app/indexers/collection_indexer.rb @@ -9,7 +9,7 @@ class CollectionIndexer < Hyrax::CollectionIndexer # Uncomment this block if you want to add custom indexing behavior: def generate_solr_document super.tap do |solr_doc| - solr_doc["creator_tesim"] = all_creators + solr_doc["creator_sim"] = solr_doc["creator_tesim"] = all_creators solr_doc["bulkrax_identifier_sim"] = object.bulkrax_identifier solr_doc["account_cname_tesim"] = Site.instance&.account&.cname solr_doc[CatalogController.title_field] = object.title.first