Class: SolrService

Inherits:
Object
  • Object
show all
Defined in:
lib/bulk_ops/solr_service.rb

Class Method Summary collapse

Class Method Details

.record_exists?(id) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
6
7
8
9
10
# File 'lib/bulk_ops/solr_service.rb', line 3

def self.record_exists? id
  begin
    return true if SolrDocument.find(id)
  rescue Blacklight::Exceptions::RecordNotFound
    return false
  end
  return false
end