Skip to content

Commit

Permalink
ObjectIndexer: index member_ids to preserve FileSet order
Browse files Browse the repository at this point in the history
Fixes DIGREPO-886.
  • Loading branch information
dunn committed Apr 20, 2018
1 parent b04b647 commit 6718591
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/indexers/object_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def rdf_service

def generate_solr_document
super do |solr_doc|
# override CurationConcerns::WorkIndexer to preserve FileSet
# order
solr_doc[Solrizer.solr_name("member_ids", :symbol)] =
object.ordered_members.to_a.map(&:id)

collection_ids, collection_titles = collections
solr_doc[COLLECTION] = collection_ids
solr_doc[COLLECTION_LABEL] = collection_titles
Expand Down

0 comments on commit 6718591

Please sign in to comment.