Class: Noiseless::Adapters::Elasticsearch

Inherits:
Noiseless::Adapter show all
Includes:
Noiseless::Adapters::ExecutionModules::ElasticsearchExecution
Defined in:
lib/noiseless/adapters/elasticsearch.rb

Constant Summary collapse

ClusterAPI =
Adapters::ClusterAPI
IndicesAPI =
Adapters::IndicesAPI

Instance Method Summary collapse

Methods included from Noiseless::Adapters::ExecutionModules::HttpTransport

#close, #initialize

Methods inherited from Noiseless::Adapter

#async_context?, #bulk, #create_index, #delete_document, #delete_index, #document_exists?, #index_document, #index_exists?, #initialize, #search, #search_raw, #update_document

Methods included from Introspection

#adapter_capabilities, #adapter_info, #build_execution_plan, #compatibility_matrix, #detect_execution_module, #engine_name, #explain_query, #profile_query

Methods included from Instrumentation

#instrument

Instance Method Details

#clusterObject

Cluster health API - needed for Rails healthcheck



14
15
16
# File 'lib/noiseless/adapters/elasticsearch.rb', line 14

def cluster
  @cluster ||= ClusterAPI.new(self)
end

#indicesObject

Indices API - needed for index management operations



19
20
21
# File 'lib/noiseless/adapters/elasticsearch.rb', line 19

def indices
  @indices ||= IndicesAPI.new(self)
end