Sha256: 886df25dd21e03913a4841953d768f5f8280be6f08279440858aa767254d6cf4

Contents?: true

Size: 1.85 KB

Versions: 5

Compression:

Stored size: 1.85 KB

Contents

# Copyright 2015 Doximity, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require "rubygems"
require "bundler/setup"
Bundler.setup

require "active_support"
require "active_support/core_ext"
require "active_model"
require "elasticsearch"

module Elasticity
  autoload :Bulk,                     "elasticity/bulk"
  autoload :Config,                   "elasticity/config"
  autoload :IndexConfig,              "elasticity/index_config"
  autoload :IndexMapper,              "elasticity/index_mapper"
  autoload :BaseDocument,             "elasticity/base_document"
  autoload :Document,                 "elasticity/document"
  autoload :SegmentedDocument,        "elasticity/segmented_document"
  autoload :InstrumentedClient,       "elasticity/instrumented_client"
  autoload :LogSubscriber,            "elasticity/log_subscriber"
  autoload :MultiSearch,              "elasticity/multi_search"
  autoload :Search,                   "elasticity/search"
  autoload :Strategies,               "elasticity/strategies"
  autoload :ScrollableSearch,         "elasticity/scrollable_search"
  autoload :MultiSearchResponseParser, "elasticity/multi_search_response_parser"

  def self.configure
    @config = Config.new
    yield(@config)
  end

  def self.config
    return @config if defined?(@config)
    @config = Config.new
  end
end

if defined?(Rails)
  require "elasticity/railtie"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
es-elasticity-0.12.0 lib/elasticity.rb
es-elasticity-0.11.5 lib/elasticity.rb
es-elasticity-0.11.1 lib/elasticity.rb
es-elasticity-0.9.0 lib/elasticity.rb
es-elasticity-0.8.4 lib/elasticity.rb