Module: Hyrax::LocationIndexer

Included in:
Indexers::PcdmCollectionIndexer, Indexers::PcdmObjectIndexer
Defined in:
app/indexers/concerns/hyrax/location_indexer.rb

Overview

Indexes properties common to Hyrax::Resource types

Instance Method Summary collapse

Instance Method Details

#to_solrObject



7
8
9
10
11
# File 'app/indexers/concerns/hyrax/location_indexer.rb', line 7

def to_solr
  super.tap do |index_document|
    index_document[:based_near_label_tesim] = based_near_label_lookup(resource.based_near) if resource.respond_to? :based_near
  end
end