Module: Hyrax::VisibilityIndexer

Included in:
PcdmCollectionIndexer, ValkyrieFileSetIndexer, ValkyrieWorkIndexer
Defined in:
app/indexers/hyrax/visibility_indexer.rb

Overview

Indexes visibility of the resource; Blacklight depends on visibility being present in the index to determine visibility of results and object show views.

Examples:

class MyIndexer < Hyrax::ValkyrieIndexer
  include Hyrax::VisibilityIndexer
end

Instance Method Summary collapse

Instance Method Details

#to_solrObject


14
15
16
17
18
# File 'app/indexers/hyrax/visibility_indexer.rb', line 14

def to_solr
  super.tap do |index_document|
    index_document[:visibility_ssi] = visibility_reader.read
  end
end