Class: Ddr::Index::Connection

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ddr/index/connection.rb

Instance Method Summary collapse

Constructor Details

#initializeConnection

Returns a new instance of Connection.



6
7
8
# File 'lib/ddr/index/connection.rb', line 6

def initialize
  super RSolr.connect(ActiveFedora.solr_config)
end

Instance Method Details

#page(*args) ⇒ Object



14
15
16
# File 'lib/ddr/index/connection.rb', line 14

def page(*args)
  Response.new paginate(*args)
end

#select(params, extra = {}) ⇒ Object



10
11
12
# File 'lib/ddr/index/connection.rb', line 10

def select(params, extra={})
  Response.new get("select", params: params.merge(extra))
end