Method: Geoblacklight::SolrDocument::Finder::ClassMethods#find

Defined in:
app/models/concerns/geoblacklight/solr_document/finder.rb

#find(id) ⇒ Object

Find a Solr Document from an index

Parameters:

  • (String)


19
20
21
22
# File 'app/models/concerns/geoblacklight/solr_document/finder.rb', line 19

def find(id)
  solr_response = index.find(id)
  solr_response.documents.first
end