Copyright © 2013 Mahesh Paolini-Subramanya
Version: 1.3.0 Sep 30 2014 14:10:19 ------------------------------------------------------------------------
Behaviours: cloudi_service.
Authors: Mahesh Paolini-Subramanya (mahesh@dieswaytoofast.com).
dispatcher() = cloudi_service:dispatcher() | cloudi:context()
doc() = binary()
error() = {error, Reason::term()}
id() = binary() | undefined
index() = binary()
name() = cloudi_service:service_name()
node_name() = binary()
params() = [tuple()]
response() = [tuple()] | error()
type() = binary()
| aliases/3 | Operate on aliases (as compared to 'alias'). |
| clear_cache/2 | Clear all the caches. |
| clear_cache/3 | |
| clear_cache/4 | |
| close_index/3 | Close an index in the ElasticSearch cluster. |
| cloudi_service_handle_info/3 | |
| cloudi_service_handle_request/11 | |
| cloudi_service_init/3 | |
| cloudi_service_terminate/2 | |
| count/3 | |
| count/4 | |
| count/5 | |
| count/6 | Get the number of matches for a query. |
| create_index/3 | |
| create_index/4 | Create an index in the ElasticSearch cluster. |
| delete_alias/4 | Delete an alias (as compared to 'aliases'). |
| delete_by_query/3 | |
| delete_by_query/4 | |
| delete_by_query/5 | |
| delete_by_query/6 | Get the number of matches for a query. |
| delete_doc/5 | |
| delete_doc/6 | Delete a doc from the ElasticSearch cluster. |
| delete_index/2 | Delete all the indices in the ElasticSearch cluster. |
| delete_index/3 | Delete an index(es) in the ElasticSearch cluster. |
| delete_mapping/4 | Delete a mapping from an ElasticSearch index. |
| flush/2 | Flush all indices _equiv flush(Dispatcher, Name, ?ALL). |
| flush/3 | Flush one or more indices. |
| get_alias/4 | Gets an alias(or more, based on the string). |
| get_doc/5 | |
| get_doc/6 | Get a doc from the ElasticSearch cluster. |
| get_mapping/4 | Get a mapping from an ElasticSearch index. |
| health/2 | Get the health the ElasticSearch cluster. |
| insert_alias/4 | Insert an alias (as compared to 'aliases'). |
| insert_alias/5 | Insert an alias with options(as compared to 'aliases'). |
| insert_doc/6 | |
| insert_doc/7 | Insert a doc into the ElasticSearch cluster. |
| is_alias/4 | Checks if an alias exists (Alias can be a string with a wildcard). |
| is_doc/5 | Checks to see if the doc exists. |
| is_index/3 | Check if an index/indices exists in the ElasticSearch cluster. |
| is_type/4 | Check if a type exists in an index/indices in the ElasticSearch cluster. |
| mget_doc/3 | |
| mget_doc/4 | |
| mget_doc/5 | Get a doc from the ElasticSearch cluster. |
| nodes_info/2 | |
| nodes_info/3 | |
| nodes_info/4 | Get the nodes_info of the ElasticSearch cluster. |
| nodes_stats/2 | |
| nodes_stats/3 | |
| nodes_stats/4 | Get the nodes_stats of the ElasticSearch cluster. |
| open_index/3 | Open an index in the ElasticSearch cluster. |
| optimize/2 | Optimize all indices. |
| optimize/3 | Optimize one or more indices. |
| put_mapping/5 | Insert a mapping into an ElasticSearch index. |
| refresh/2 | Refresh all indices. |
| refresh/3 | Refresh one or more indices. |
| search/5 | |
| search/6 | Search for docs in the ElasticSearch cluster. |
| segments/2 | Optimize all indices. |
| segments/3 | Optimize one or more indices. |
| state/2 | |
| state/3 | Get the state of the ElasticSearch cluster. |
| status/3 | Get the status of an index/indices in the ElasticSearch cluster. |
| update_doc/6 | |
| update_doc/7 | Insert a doc into the ElasticSearch cluster. |
aliases(Dispatcher::dispatcher(), Name::name(), Doc::doc()) -> {ok, response()} | {error, any()}
Operate on aliases (as compared to 'alias')
clear_cache(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
Clear all the caches
clear_cache(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()]) -> {ok, response()} | {error, any()}
clear_cache(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()], Params::params()) -> {ok, response()} | {error, any()}
close_index(Dispatcher::dispatcher(), Name::name(), Index::index()) -> {ok, response()} | {error, any()}
Close an index in the ElasticSearch cluster
cloudi_service_handle_info(Request, State, X3) -> any()
cloudi_service_handle_request(Type, Name, Pattern, RequestInfo, Request, Timeout, Priority, TransId, Pid, State, Dispatcher) -> any()
cloudi_service_init(Args, Prefix, Dispatcher) -> any()
cloudi_service_terminate(X1, State) -> any()
count(Dispatcher::dispatcher(), Name::name(), Doc::doc()) -> {ok, boolean()} | {error, any()}
count(Dispatcher::dispatcher(), Name::name(), Doc::doc(), Params::params()) -> {ok, boolean()} | {error, any()}
count(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()], Doc::doc(), Params::params()) -> {ok, boolean()} | {error, any()}
count(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()], Type::type() | [type()], Doc::doc(), Params::params()) -> {ok, boolean()} | {error, any()}
Get the number of matches for a query
create_index(Dispatcher::dispatcher(), Name::name(), Index::index()) -> {ok, response()} | {error, any()}
create_index(Dispatcher::dispatcher(), Name::name(), Index::index(), Doc::doc()) -> {ok, response()} | {error, any()}
Create an index in the ElasticSearch cluster
delete_alias(Dispatcher::dispatcher(), Name::name(), Index::index(), Alias::index()) -> {ok, response()} | {error, any()}
Delete an alias (as compared to 'aliases')
delete_by_query(Dispatcher::dispatcher(), Name::name(), Doc::doc()) -> {ok, boolean()} | {error, any()}
delete_by_query(Dispatcher::dispatcher(), Name::name(), Doc::doc(), Params::params()) -> {ok, boolean()} | {error, any()}
delete_by_query(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()], Doc::doc(), Params::params()) -> {ok, boolean()} | {error, any()}
delete_by_query(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()], Type::type() | [type()], Doc::doc(), Params::params()) -> {ok, boolean()} | {error, any()}
Get the number of matches for a query
delete_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Id::id()) -> {ok, response()} | {error, any()}
delete_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Id::id(), Params::params()) -> {ok, response()} | {error, any()}
Delete a doc from the ElasticSearch cluster
delete_index(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
Delete all the indices in the ElasticSearch cluster
delete_index(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()]) -> {ok, response()} | {error, any()}
Delete an index(es) in the ElasticSearch cluster
delete_mapping(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()], Type::type()) -> {ok, response()} | {error, any()}
Delete a mapping from an ElasticSearch index
flush(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
Flush all indices _equiv flush(Dispatcher, Name, ?ALL).
flush(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()]) -> {ok, response()} | {error, any()}
Flush one or more indices
get_alias(Dispatcher::dispatcher(), Name::name(), Index::index(), Alias::index()) -> {ok, response()} | {error, any()}
Gets an alias(or more, based on the string)
get_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Id::id()) -> {ok, response()} | {error, any()}
get_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Id::id(), Params::params()) -> {ok, response()} | {error, any()}
Get a doc from the ElasticSearch cluster
get_mapping(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()], Type::type()) -> {ok, response()} | {error, any()}
Get a mapping from an ElasticSearch index
health(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
Get the health the ElasticSearch cluster
insert_alias(Dispatcher::dispatcher(), Name::name(), Index::index(), Alias::index()) -> {ok, response()} | {error, any()}
Insert an alias (as compared to 'aliases')
insert_alias(Dispatcher::dispatcher(), Name::name(), Index::index(), Alias::index(), Doc::doc()) -> {ok, response()} | {error, any()}
Insert an alias with options(as compared to 'aliases')
insert_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Id::id(), Doc::doc()) -> {ok, response()} | {error, any()}
insert_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Id::id(), Doc::doc(), Params::params()) -> {ok, response()} | {error, any()}
Insert a doc into the ElasticSearch cluster
is_alias(Dispatcher::dispatcher(), Name::name(), Index::index(), Alias::index()) -> {ok, response()} | {error, any()}
Checks if an alias exists (Alias can be a string with a wildcard)
is_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Id::id()) -> {ok, response()} | {error, any()}
Checks to see if the doc exists
is_index(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()]) -> {ok, boolean()} | {error, any()}
Check if an index/indices exists in the ElasticSearch cluster
is_type(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()], Type::type() | [type()]) -> {ok, boolean()} | {error, any()}
Check if a type exists in an index/indices in the ElasticSearch cluster
mget_doc(Dispatcher::dispatcher(), Name::name(), Doc::doc()) -> {ok, response()} | {error, any()}
mget_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Doc::doc()) -> {ok, response()} | {error, any()}
mget_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Doc::doc()) -> {ok, response()} | {error, any()}
Get a doc from the ElasticSearch cluster
nodes_info(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
nodes_info(Dispatcher::dispatcher(), Name::name(), NodeName::node_name()) -> {ok, response()} | {error, any()}
nodes_info(Dispatcher::dispatcher(), Name::name(), NodeNames::[node_name()], Params::params()) -> {ok, response()} | {error, any()}
Get the nodes_info of the ElasticSearch cluster
nodes_stats(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
nodes_stats(Dispatcher::dispatcher(), Name::name(), NodeName::node_name()) -> {ok, response()} | {error, any()}
nodes_stats(Dispatcher::dispatcher(), Name::name(), NodeNames::[node_name()], Params::params()) -> {ok, response()} | {error, any()}
Get the nodes_stats of the ElasticSearch cluster
open_index(Dispatcher::dispatcher(), Name::name(), Index::index()) -> {ok, response()} | {error, any()}
Open an index in the ElasticSearch cluster
optimize(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
Optimize all indices
optimize(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()]) -> {ok, response()} | {error, any()}
Optimize one or more indices
put_mapping(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()], Type::type(), Doc::doc()) -> {ok, response()} | {error, any()}
Insert a mapping into an ElasticSearch index
refresh(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
Refresh all indices
refresh(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()]) -> {ok, response()} | {error, any()}
Refresh one or more indices
search(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Doc::doc()) -> {ok, response()} | {error, any()}
search(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Doc::doc(), Params::params()) -> {ok, response()} | {error, any()}
Search for docs in the ElasticSearch cluster
segments(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
Optimize all indices
segments(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()]) -> {ok, response()} | {error, any()}
Optimize one or more indices
state(Dispatcher::dispatcher(), Name::name()) -> {ok, response()} | {error, any()}
state(Dispatcher::dispatcher(), Name::name(), Params::params()) -> {ok, response()} | {error, any()}
Get the state of the ElasticSearch cluster
status(Dispatcher::dispatcher(), Name::name(), Index::index() | [index()]) -> {ok, response()} | {error, any()}
Get the status of an index/indices in the ElasticSearch cluster
update_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Id::id(), Doc::doc()) -> {ok, response()} | {error, any()}
update_doc(Dispatcher::dispatcher(), Name::name(), Index::index(), Type::type(), Id::id(), Doc::doc(), Params::params()) -> {ok, response()} | {error, any()}
Insert a doc into the ElasticSearch cluster
Generated by EDoc, Sep 30 2014, 14:10:19.