Module: Elastics

Extended by:
Elastics, UtilityMethods
Includes:
ApiStubs, Templates
Included in:
Elastics
Defined in:
lib/elastics/tasks.rb,
lib/elastics/utils.rb,
lib/elastics-client.rb,
lib/elastics/errors.rb,
lib/elastics/logger.rb,
lib/elastics/result.rb,
lib/elastics/indices.rb,
lib/elastics/prog_bar.rb,
lib/elastics/template.rb,
lib/elastics/api_stubs.rb,
lib/elastics/templates.rb,
lib/elastics/variables.rb,
lib/elastics/result/bulk.rb,
lib/elastics/struct/hash.rb,
lib/elastics/struct/array.rb,
lib/elastics/template/api.rb,
lib/elastics/configuration.rb,
lib/elastics/result/search.rb,
lib/elastics/template/tags.rb,
lib/elastics/result/document.rb,
lib/elastics/struct/prunable.rb,
lib/elastics/template/common.rb,
lib/elastics/template/logger.rb,
lib/elastics/template/search.rb,
lib/elastics/utility_methods.rb,
lib/elastics/class_proxy/base.rb,
lib/elastics/result/multi_get.rb,
lib/elastics/struct/mergeable.rb,
lib/elastics/struct/paginable.rb,
lib/elastics/struct/symbolize.rb,
lib/elastics/template/partial.rb,
lib/elastics/http_clients/base.rb,
lib/elastics/client_live_reindex.rb,
lib/elastics/http_clients/loader.rb,
lib/elastics/http_clients/patron.rb,
lib/elastics/template/slim_search.rb,
lib/elastics/class_proxy/templates.rb,
lib/elastics/http_clients/rest_client.rb,
lib/elastics/class_proxy/templates/doc.rb,
lib/elastics/class_proxy/templates/search.rb

Defined Under Namespace

Modules: ApiStubs, ClassProxy, HttpClients, LiveReindex, Struct, Templates, UtilityMethods, Utils Classes: ArgumentError, DocumentMappingError, ExistingIndexError, HttpError, Indices, Logger, MissingHttpClientError, MissingIndexEntryError, MissingParentError, MissingPartialError, MissingTemplateMethodError, MissingVariableError, ProgBar, Result, SourceError, Tasks, Template, Variables

Constant Summary collapse

LIB_PATHS =
[ File.dirname(__FILE__) ]
Vars =

shorter alias

Variables
Configuration =
OpenStruct.new :result_extenders => [ Result::Document,
                       Result::Search,
                       Result::MultiGet,
                       Result::Bulk ],
:logger           => Logger.new(STDERR),
:variables        => Vars.new( :index      => nil,
                               :type       => nil,
                               :params     => {},
                               :no_pruning => [] ),
:config_file      => './config/elastics.yml',
:elastics_dir     => './elastics',
:http_client      => HttpClients::Loader.new_http_client
Conf =

shorter alias

Configuration
Prunable =
Struct::Prunable

Instance Attribute Summary

Attributes included from Templates

#contexts

Method Summary

Methods included from UtilityMethods

build_bulk_string, doc, dump_all, dump_one, find, json2yaml, post_bulk_collection, reload!, scan_all, scan_search, search, slim_search, usage, yaml2json

Methods included from Templates

included

Methods included from ApiStubs

analyze_index, cat, close_index, cluster_health, cluster_nodes_hot_threads, cluster_nodes_info, cluster_nodes_stats, cluster_pending_tasks, cluster_reroute, cluster_state, cluster_stats, count, delete, delete_index, delete_index_alias, delete_index_mapping, delete_index_template, delete_index_warmer, delete_percolator, explain, flush_index, get, get_cluster_settings, get_field_mapping, get_index, get_index_alias, get_index_aliases, get_index_mapping, get_index_settings, get_index_template, get_index_warmer, get_source, index_clearcache, index_recovery, index_segments, index_stats, index_status, index_template_exists, indices_exists, match_all, more_like_this, multi_get_docs, multi_get_ids, multi_termvectors, open_index, optimize_index, percolate, percolate_count, post_bulk_string, post_index, post_index_aliases, post_store, put_cluster_settings, put_index, put_index_alias, put_index_mapping, put_index_template, put_index_warmer, put_percolator, refresh_index, search_by_id, search_exists, search_shards, store, synced_flush_index, termvectors, types_exists, update, update_index_settings, upgrade_index, validate