module Solrbee

Constants

DEFAULT_URI
VERSION

Public Class Methods

container(uri: DEFAULT_URI) { |config| ... } click to toggle source
# File lib/solrbee.rb, line 18
def self.container(uri: DEFAULT_URI)
  ROM.container(:solr, uri: uri) do |config|
    config.auto_registration(
      File.expand_path('../rom/solr/', __FILE__),
      namespace: 'ROM::Solr'
    )

    yield config if block_given?
  end
end
documents() click to toggle source
# File lib/solrbee.rb, line 10
def self.documents
  ROM::Solr::DocumentRepo.new(container)
end
schema_info() click to toggle source
# File lib/solrbee.rb, line 14
def self.schema_info
  ROM::Solr::SchemaInfoRepo.new(container)
end