Skip to content

Commit

Permalink
Update asset_resource_indexer.rb
Browse files Browse the repository at this point in the history
undo what I did
  • Loading branch information
ekemeyer authored Aug 27, 2024
1 parent f5dbf3f commit b6b8ff4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/indexers/asset_resource_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def to_solr
AnnotationTypesService.new.select_all_options.each do |type|
# Use the ID defined in the AnnotationType service
type_id = type[1]
unless resource.try(type_id.to_sym).nil? || resource.try(type_id.to_sym).blank?
index_document ["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym)
index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?
end

#Indexing for search by batch_id
Expand Down

0 comments on commit b6b8ff4

Please sign in to comment.