Tirexs v0.8.15 Tirexs.Resources.APIs
This module provides a set of API helpers. Helpers are useful for buiding
an URN part of particular request. Most commonly the result of this would
be used for dealing directly with variety of available Tirexs.HTTP
functions.
Examples:
iex> APIs._refresh({ [force: true] })
"_refresh?force=true"
iex> APIs._refresh(["bear_test", "duck_test"], { [force: false] })
"bear_test,duck_test/_refresh?force=false"
iex> APIs._field_mapping(["bear_test", "duck_test"], "message", {[ ignore_unavailable: true ]})
"bear_test,duck_test/_mapping/message/field?ignore_unavailable=true"
iex> APIs._field_mapping("_all", "tw*", ["*.id", "*.text"])
"_all/_mapping/tw*/field/*.id,*.text"
NOTICE: All of helpers have the same interface, behaviour and almost don’t care about the details. It means, you have a chance to create a complety unsupported API call.
For instance:
iex> APIs._refresh(["bear_test", "duck_test"], ["a", "b"], {[ human: true ]})
"bear_test,duck_test/_refresh/a,b?human=true"
A Tirexs.Resources.urn/x
is responsible for concatenation parts all together.
Feature requests
Feature requests are welcome and should be discussed. But take a moment to find
out whether your idea fits with the scope and aims of the project. Please provide
as much detail and context as possible (from CONTRIBUTING.md
).
Summary
Functions
See Tirexs.Resources.Indices._alias/0
See Tirexs.Resources.Indices._alias/1
See Tirexs.Resources.Indices._alias/2
See Tirexs.Resources.Indices._alias/3
See Tirexs.Resources.Indices._aliases/0
See Tirexs.Resources.Indices._aliases/1
See Tirexs.Resources.Indices._aliases/2
See Tirexs.Resources.Indices._aliases/3
See Tirexs.Resources.Indices._all_mapping/0
See Tirexs.Resources.Indices._analyze/0
See Tirexs.Resources.Indices._analyze/1
See Tirexs.Resources.Indices._analyze/2
See Tirexs.Resources.Indices._analyze/3
See Tirexs.Resources.Document._bulk/0
See Tirexs.Resources.Document._bulk/1
See Tirexs.Resources.Document._bulk/2
See Tirexs.Resources.Document._bulk/3
See Tirexs.Resources.Indices._cache_clear/0
See Tirexs.Resources.Indices._cache_clear/1
See Tirexs.Resources.Indices._cache_clear/3
See Tirexs.Resources.Indices._close/0
See Tirexs.Resources.Indices._close/1
See Tirexs.Resources.Indices._close/2
See Tirexs.Resources.Indices._close/3
See Tirexs.Resources.Search._count/0
See Tirexs.Resources.Search._count/1
See Tirexs.Resources.Search._count/2
See Tirexs.Resources.Search._count/3
See Tirexs.Resources.Search._explain/1
See Tirexs.Resources.Search._explain/2
See Tirexs.Resources.Search._explain/3
See Tirexs.Resources.Search._explain/4
See Tirexs.Resources.Indices._field_mapping/1
See Tirexs.Resources.Indices._field_mapping/2
See Tirexs.Resources.Indices._field_mapping/4
See Tirexs.Resources.Search._field_stats/0
See Tirexs.Resources.Search._field_stats/1
See Tirexs.Resources.Search._field_stats/2
See Tirexs.Resources.Indices._flush/0
See Tirexs.Resources.Indices._flush/1
See Tirexs.Resources.Indices._flush/2
See Tirexs.Resources.Indices._flush/3
See Tirexs.Resources.Indices._forcemerge/0
See Tirexs.Resources.Indices._forcemerge/1
See Tirexs.Resources.Indices._forcemerge/2
See Tirexs.Resources.Indices._forcemerge/3
See Tirexs.Resources.Indices._mapping/0
See Tirexs.Resources.Indices._mapping/1
See Tirexs.Resources.Indices._mapping/2
See Tirexs.Resources.Indices._mapping/3
See Tirexs.Resources.Document._mget/0
See Tirexs.Resources.Document._mget/1
See Tirexs.Resources.Document._mget/2
See Tirexs.Resources.Document._mget/3
See Tirexs.Resources.Indices._open/0
See Tirexs.Resources.Indices._open/1
See Tirexs.Resources.Indices._open/2
See Tirexs.Resources.Indices._open/3
See Tirexs.Resources.Search._percolate/1
See Tirexs.Resources.Search._percolate/2
See Tirexs.Resources.Search._percolate/3
See Tirexs.Resources.Search._percolate/4
See Tirexs.Resources.Search._percolate_count/1
See Tirexs.Resources.Search._percolate_count/2
See Tirexs.Resources.Search._percolate_count/3
See Tirexs.Resources.Search._percolate_count/4
See Tirexs.Resources.Indices._recovery/0
See Tirexs.Resources.Indices._recovery/1
See Tirexs.Resources.Indices._recovery/2
See Tirexs.Resources.Indices._recovery/3
See Tirexs.Resources.Indices._refresh/0
See Tirexs.Resources.Indices._refresh/1
See Tirexs.Resources.Indices._refresh/2
See Tirexs.Resources.Indices._refresh/3
See Tirexs.Resources.Search._search/0
See Tirexs.Resources.Search._search/1
See Tirexs.Resources.Search._search/2
See Tirexs.Resources.Search._search/3
See Tirexs.Resources.Search._search_exists/0
See Tirexs.Resources.Search._search_exists/1
See Tirexs.Resources.Search._search_exists/2
See Tirexs.Resources.Search._search_exists/3
See Tirexs.Resources.Search._search_scroll/0
See Tirexs.Resources.Search._search_scroll/1
See Tirexs.Resources.Search._search_scroll_all/0
See Tirexs.Resources.Search._search_shards/1
See Tirexs.Resources.Search._search_shards/2
See Tirexs.Resources.Search._search_shards/3
See Tirexs.Resources.Indices._segments/0
See Tirexs.Resources.Indices._segments/1
See Tirexs.Resources.Indices._segments/2
See Tirexs.Resources.Indices._segments/3
See Tirexs.Resources.Indices._settings/0
See Tirexs.Resources.Indices._settings/1
See Tirexs.Resources.Indices._settings/2
See Tirexs.Resources.Indices._settings/3
See Tirexs.Resources.Indices._shard_stores/0
See Tirexs.Resources.Indices._shard_stores/1
See Tirexs.Resources.Indices._shard_stores/2
See Tirexs.Resources.Indices._shard_stores/3
See Tirexs.Resources.Document._source/1
See Tirexs.Resources.Document._source/2
See Tirexs.Resources.Document._source/3
See Tirexs.Resources.Document._source/4
See Tirexs.Resources.Indices._stats/0
See Tirexs.Resources.Indices._stats/1
See Tirexs.Resources.Indices._stats/2
See Tirexs.Resources.Indices._stats/3
See Tirexs.Resources.Indices._template/0
See Tirexs.Resources.Indices._template/1
See Tirexs.Resources.Indices._template/2
See Tirexs.Resources.Indices._template/3
See Tirexs.Resources.Document._update/1
See Tirexs.Resources.Document._update/2
See Tirexs.Resources.Document._update/3
See Tirexs.Resources.Document._update/4
See Tirexs.Resources.Indices._upgrade/0
See Tirexs.Resources.Indices._upgrade/1
See Tirexs.Resources.Indices._upgrade/2
See Tirexs.Resources.Indices._upgrade/3
See Tirexs.Resources.Search._validate_query/0
See Tirexs.Resources.Search._validate_query/1
See Tirexs.Resources.Search._validate_query/2
See Tirexs.Resources.Search._validate_query/3
See Tirexs.Resources.Indices._warmer/0
See Tirexs.Resources.Indices._warmer/1
See Tirexs.Resources.Indices._warmer/2
See Tirexs.Resources.Indices._warmer/3
See Tirexs.Resources.Document.doc/1
See Tirexs.Resources.Document.doc/2
See Tirexs.Resources.Document.doc/3
See Tirexs.Resources.Document.doc/4
See Tirexs.Resources.Document.index/1
See Tirexs.Resources.Document.index/2
See Tirexs.Resources.Document.index/3
See Tirexs.Resources.Document.index/4
See Tirexs.Resources.Search.percolator/2