Class: Esse::Index

Inherits:
Object
  • Object
show all
Extended by:
Deprecations::Deprecate, ClassMethods, ObjectDocumentMapper
Defined in:
lib/esse/index/settings.rb,
lib/esse/index.rb,
lib/esse/index/base.rb,
lib/esse/index/type.rb,
lib/esse/index/search.rb,
lib/esse/index/actions.rb,
lib/esse/index/aliases.rb,
lib/esse/index/indices.rb,
lib/esse/index/plugins.rb,
lib/esse/index/mappings.rb,
lib/esse/index/documents.rb,
lib/esse/index/attributes.rb,
lib/esse/index/descendants.rb,
lib/esse/index/inheritance.rb,
lib/esse/deprecations/index.rb,
lib/esse/index/object_document_mapper.rb

Overview

Defined Under Namespace

Modules: ClassMethods, ObjectDocumentMapper

Constant Summary

Constants included from ClassMethods

ClassMethods::CREATE_INDEX_RESERVED_KEYWORDS, ClassMethods::INDEX_SIMPLIFIED_SETTINGS, ClassMethods::TEMPLATE_DIRS

Instance Attribute Summary

Attributes included from ClassMethods

#abstract_class, #plugins, #repo_hash

Class Method Summary collapse

Methods included from ClassMethods

abstract_class?, aliases, bulk, bulk_wait_interval, bulk_wait_interval=, close, cluster, cluster_id, cluster_id=, count, create_index, delete, delete_index, descendants, exist?, get, import, index, index_directory, index_exist?, index_name, index_name=, index_name?, index_prefix, index_prefix=, index_suffix, index_suffix=, indices_pointing_to_alias, inherited, inspect, mapping_single_type=, mapping_single_type?, mappings, mappings_hash, open, plugin, refresh, repo, repo?, repository, reset_index, search, settings, settings_hash, template_dirs, uname, update, update_aliases, update_by_query, update_mapping, update_settings

Methods included from Deprecations::Deprecate

extended

Methods included from ObjectDocumentMapper

documents, each_serialized_batch

Class Method Details

.backendObject



32
33
34
# File 'lib/esse/deprecations/index.rb', line 32

def backend
  Esse::Deprecations::IndexBackendDelegator.new(:backend, self)
end

.define_type(name, *args, **kwargs, &block) ⇒ Object



8
9
10
# File 'lib/esse/deprecations/index.rb', line 8

def define_type(name, *args, **kwargs, &block)
  repository(name, *args, **kwargs, &block)
end

.elasticsearchObject



28
29
30
# File 'lib/esse/deprecations/index.rb', line 28

def elasticsearch
  Esse::Deprecations::IndexBackendDelegator.new(:elasticsearch, self)
end

.index_versionObject



18
19
20
# File 'lib/esse/deprecations/index.rb', line 18

def index_version
  index_suffix
end

.index_version=(value) ⇒ Object



23
24
25
# File 'lib/esse/deprecations/index.rb', line 23

def index_version=(value)
  self.index_suffix = value
end

.type_hashObject



13
14
15
# File 'lib/esse/deprecations/index.rb', line 13

def type_hash
  repo_hash
end