Module: Ddr::Index::Connection::Methods
- Extended by:
- Forwardable
- Included in:
- Ddr::Index::Connection, Ddr::Index::Connection
- Defined in:
- lib/ddr/index/connection.rb
Instance Method Summary collapse
Instance Method Details
#count(params) ⇒ Object
27 28 29 |
# File 'lib/ddr/index/connection.rb', line 27 def count(params) select(params, rows: 0).num_found end |
#page(*args) ⇒ Object
23 24 25 |
# File 'lib/ddr/index/connection.rb', line 23 def page(*args) Response.new paginate(*args) end |
#select(params, extra = {}) ⇒ Object
19 20 21 |
# File 'lib/ddr/index/connection.rb', line 19 def select(params, extra={}) Response.new post("select", params: params.merge(extra)) end |
#solr ⇒ Object
15 16 17 |
# File 'lib/ddr/index/connection.rb', line 15 def solr Blacklight.default_index.connection end |