module Elasticsearch::Extensions::Documents
Constants
- VERSION
Attributes
client[RW]
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/elasticsearch/extensions/documents.rb, line 24 def configure self.configuration ||= OpenStruct.new(client: OpenStruct.new) yield configuration end
index_adapter()
click to toggle source
# File lib/elasticsearch/extensions/documents.rb, line 37 def index_adapter case self.configuration.index_adapter when :direct then DirectIndexStore.new when :aliased then AliasedIndexStore.new else DirectIndexStore.new end end
index_name()
click to toggle source
# File lib/elasticsearch/extensions/documents.rb, line 29 def index_name self.configuration.index_name end
logger()
click to toggle source
# File lib/elasticsearch/extensions/documents.rb, line 33 def logger self.configuration.client.logger ||= Logger.new(STDERR) end