Sha256: ef195d4e878f24704bd60b9f0d8933d7d5c811c507fe25d694aff668f442a645

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

module Sufia
  class GenericFileIndexingService < ActiveFedora::IndexingService
    def generate_solr_document
      super.tap do |solr_doc|
        solr_doc[Solrizer.solr_name('label')] = object.label
        solr_doc[Solrizer.solr_name('file_format')] = object.file_format
        solr_doc[Solrizer.solr_name('file_format', :facetable)] = object.file_format
        solr_doc['all_text_timv'] = object.full_text.content
        solr_doc = object.index_collection_ids(solr_doc)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sufia-6.0.0.rc4 sufia-models/app/services/sufia/generic_file_indexing_service.rb
sufia-models-6.0.0.rc4 app/services/sufia/generic_file_indexing_service.rb
sufia-6.0.0.rc3 sufia-models/app/services/sufia/generic_file_indexing_service.rb
sufia-models-6.0.0.rc3 app/services/sufia/generic_file_indexing_service.rb