Sha256: a5408cf633bb0795103f6bce5ed708625bfaf3c35f1ffdeba8edfface0691b06

Contents?: true

Size: 691 Bytes

Versions: 3

Compression:

Stored size: 691 Bytes

Contents

# Core indexer for newspaper work types
module NewspaperWorks
  class NewspaperCoreIndexer < Hyrax::WorkIndexer
    # This indexes the default metadata. You can remove it if you want to
    # provide your own metadata and indexing.
    include Hyrax::IndexesBasicMetadata
    include NewspaperWorks::IndexesPlaceOfPublication
    include NewspaperWorks::IndexesRelationships

    # Fetch remote labels for based_near. You can remove this if you don't want
    # this behavior
    # include Hyrax::IndexesLinkedMetadata

    def generate_solr_document
      super.tap do |solr_doc|
        index_pop(object, solr_doc)
        index_relationships(object, solr_doc)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newspaper_works-1.0.1 app/indexers/newspaper_works/newspaper_core_indexer.rb
newspaper_works-1.0.0 app/indexers/newspaper_works/newspaper_core_indexer.rb
newspaper_works-0.1.0 app/indexers/newspaper_works/newspaper_core_indexer.rb