Skip to content

Commit

Permalink
Merge pull request #2341 from samvera/index-search-on-singular-items
Browse files Browse the repository at this point in the history
💄 Removes the multiple indicator from Solr suffix
  • Loading branch information
sjproctor committed Sep 20, 2024
2 parents 4c4a1df + e014d1f commit d6892bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ class CatalogController < ApplicationController
before_action :enforce_show_permissions, only: :show

def self.created_field
'date_created_ssim'
'date_created_ssi'
end

def self.creator_field
'creator_ssim'
'creator_ssi'
end

def self.modified_field
'system_modified_dtsi'
end

def self.title_field
'title_ssim'
'title_ssi'
end

def self.uploaded_field
Expand Down
4 changes: 2 additions & 2 deletions app/indexers/concerns/hyku_indexing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ module HykuIndexing
solr_doc['member_ids_ssim'] = object.member_ids.map(&:id) if object.kind_of?(Valkyrie::Resource)
solr_doc['all_text_tsimv'] = extract_full_text(object)
# rubocop:enable Style/ClassCheck
solr_doc['title_ssim'] = SortTitle.new(object.title.first).alphabetical
solr_doc['title_ssi'] = SortTitle.new(object.title.first).alphabetical
solr_doc['depositor_ssi'] = object.depositor
solr_doc['creator_ssim'] = object.creator&.first
solr_doc['creator_ssi'] = object.creator&.first
if object.respond_to?(:date_created)
solr_doc[CatalogController.created_field] =
Array(object.date_created).first
Expand Down

0 comments on commit d6892bf

Please sign in to comment.