Module: Hyrax::VisibilityIndexer

Included in:
Indexers::AdministrativeSetIndexer, Indexers::FileSetIndexer, Indexers::PcdmCollectionIndexer, Indexers::PcdmObjectIndexer
Defined in:
app/indexers/concerns/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::Indexers::ResourceIndexer
  include Hyrax::VisibilityIndexer
end

Instance Method Summary collapse

Instance Method Details

#to_solrObject



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

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