Skip to content

Commit

Permalink
πŸ› Add uri to string creator to creator_sim also
Browse files Browse the repository at this point in the history
The facets still showed the URI but by setting `creator_sim` to the same
value will fix this.

Ref:
  - #592
  • Loading branch information
kirkkwang committed Mar 1, 2024
1 parent 71e3f08 commit bc0979b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/indexers/collection_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc0979b

Please sign in to comment.