Sha256: b2231fbc24a041e5d0fbf2d9f31fd5bbf88dc56a25a10aa100e8262a7a42d5c1

Contents?: true

Size: 331 Bytes

Versions: 11

Compression:

Stored size: 331 Bytes

Contents

require "rsolr"

module Ddr::Index
  class Connection < SimpleDelegator

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

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

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

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ddr-models-3.0.8 lib/ddr/index/connection.rb
ddr-models-3.0.7 lib/ddr/index/connection.rb
ddr-models-3.0.6 lib/ddr/index/connection.rb
ddr-models-3.0.5 lib/ddr/index/connection.rb
ddr-models-3.0.4 lib/ddr/index/connection.rb
ddr-models-3.0.3 lib/ddr/index/connection.rb
ddr-models-3.0.2 lib/ddr/index/connection.rb
ddr-models-3.0.1 lib/ddr/index/connection.rb
ddr-models-3.0.0 lib/ddr/index/connection.rb
ddr-models-3.0.0.rc6 lib/ddr/index/connection.rb
ddr-models-3.0.0.rc5 lib/ddr/index/connection.rb