updating doc links to elastic.co
reverting bucket link to elasticsearch.org updating test cases to use elastic.co updating pylibmc version
This commit is contained in:
@@ -24,4 +24,3 @@ before_script:
|
||||
|
||||
script:
|
||||
- python setup.py test
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ before writing too much code.
|
||||
The process for contributing to any of the Elasticsearch repositories is similar.
|
||||
|
||||
1. Please make sure you have signed the [Contributor License
|
||||
Agreement](http://www.elasticsearch.org/contributor-agreement/). We are not
|
||||
Agreement](http://www.elastic.co/contributor-agreement/). We are not
|
||||
asking you to assign copyright to us, but to give us the right to distribute
|
||||
your code without restriction. We ask this of all contributors in order to
|
||||
assure our users of the origin and continuing existence of the code. You only
|
||||
|
||||
+3
-4
@@ -86,7 +86,7 @@ The client's features include:
|
||||
License
|
||||
-------
|
||||
|
||||
Copyright 2013 Elasticsearch
|
||||
Copyright 2015 Elasticsearch
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -103,6 +103,5 @@ limitations under the License.
|
||||
Build status
|
||||
------------
|
||||
|
||||
.. image:: https://secure.travis-ci.org/elasticsearch/elasticsearch-py.png
|
||||
:target: http://travis-ci.org/#!/elasticsearch/elasticsearch-py
|
||||
|
||||
.. image:: https://secure.travis-ci.org/elastic/elasticsearch-py.png
|
||||
:target: http://travis-ci.org/#!/elastic/elasticsearch-py
|
||||
|
||||
@@ -205,7 +205,7 @@ class Elasticsearch(object):
|
||||
"""
|
||||
Adds a typed JSON document in a specific index, making it searchable.
|
||||
Behind the scenes this method calls index(..., op_type='create')
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index_.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg doc_type: The type of the document
|
||||
@@ -230,7 +230,7 @@ class Elasticsearch(object):
|
||||
def index(self, index, doc_type, body, id=None, params=None):
|
||||
"""
|
||||
Adds or updates a typed JSON document in a specific index, making it searchable.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index_.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg doc_type: The type of the document
|
||||
@@ -260,7 +260,7 @@ class Elasticsearch(object):
|
||||
def exists(self, index, id, doc_type='_all', params=None):
|
||||
"""
|
||||
Returns a boolean indicating whether or not given document exists in Elasticsearch.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-get.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg id: The document ID
|
||||
@@ -289,7 +289,7 @@ class Elasticsearch(object):
|
||||
def get(self, index, id, doc_type='_all', params=None):
|
||||
"""
|
||||
Get a typed JSON document from the index based on its id.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-get.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg id: The document ID
|
||||
@@ -326,7 +326,7 @@ class Elasticsearch(object):
|
||||
def get_source(self, index, id, doc_type='_all', params=None):
|
||||
"""
|
||||
Get the source of a document by it's index, type and id.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-get.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg doc_type: The type of the document (uses `_all` by default to
|
||||
@@ -360,7 +360,7 @@ class Elasticsearch(object):
|
||||
def mget(self, body, index=None, doc_type=None, params=None):
|
||||
"""
|
||||
Get multiple documents based on an index, type (optional) and ids.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html>`_
|
||||
|
||||
:arg body: Document identifiers; can be either `docs` (containing full
|
||||
document information) or `ids` (when index and type is provided in the URL.
|
||||
@@ -393,7 +393,7 @@ class Elasticsearch(object):
|
||||
def update(self, index, doc_type, id, body=None, params=None):
|
||||
"""
|
||||
Update a document based on a script or partial data provided.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-update.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg doc_type: The type of the document
|
||||
@@ -433,7 +433,7 @@ class Elasticsearch(object):
|
||||
def search(self, index=None, doc_type=None, body=None, params=None):
|
||||
"""
|
||||
Execute a search query and get back search hits that match the query.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-search.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to search; use `_all`
|
||||
or empty string to perform the operation on all indices
|
||||
@@ -504,7 +504,7 @@ class Elasticsearch(object):
|
||||
The search shards api returns the indices and shards that a search
|
||||
request would be executed against. This can give useful feedback for working
|
||||
out issues or planning optimizations with routing and shard preferences.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-shards.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg doc_type: The type of the document
|
||||
@@ -531,7 +531,7 @@ class Elasticsearch(object):
|
||||
"""
|
||||
A query that accepts a query template and a map of key/value pairs to
|
||||
fill in template parameters.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/query-dsl-template-query.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/query-dsl-template-query.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to search; use `_all`
|
||||
or empty string to perform the operation on all indices
|
||||
@@ -565,7 +565,7 @@ class Elasticsearch(object):
|
||||
The explain api computes a score explanation for a query and a specific
|
||||
document. This can give useful feedback whether a document matches or
|
||||
didn't match a specific query.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-explain.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg doc_type: The type of the document
|
||||
@@ -606,7 +606,7 @@ class Elasticsearch(object):
|
||||
def scroll(self, scroll_id, params=None):
|
||||
"""
|
||||
Scroll a search request created by specifying the scroll parameter.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html>`_
|
||||
|
||||
:arg scroll_id: The scroll ID
|
||||
:arg scroll: Specify how long a consistent view of the index should be
|
||||
@@ -621,7 +621,7 @@ class Elasticsearch(object):
|
||||
"""
|
||||
Clear the scroll request created by specifying the scroll parameter to
|
||||
search.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html>`_
|
||||
|
||||
:arg scroll_id: The scroll ID or a list of scroll IDs
|
||||
:arg body: A comma-separated list of scroll IDs to clear if none was
|
||||
@@ -637,7 +637,7 @@ class Elasticsearch(object):
|
||||
def delete(self, index, doc_type, id, params=None):
|
||||
"""
|
||||
Delete a typed JSON document from a specific index based on its id.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-delete.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg doc_type: The type of the document
|
||||
@@ -662,7 +662,7 @@ class Elasticsearch(object):
|
||||
def count(self, index=None, doc_type=None, body=None, params=None):
|
||||
"""
|
||||
Execute a query and get the number of matches for that query.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-count.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html>`_
|
||||
|
||||
:arg index: A comma-separated list of indices to restrict the results
|
||||
:arg doc_type: A comma-separated list of types to restrict the results
|
||||
@@ -689,7 +689,7 @@ class Elasticsearch(object):
|
||||
def bulk(self, body, index=None, doc_type=None, params=None):
|
||||
"""
|
||||
Perform many index/delete operations in a single API call.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-bulk.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html>`_
|
||||
|
||||
See the :func:`~elasticsearch.helpers.bulk` helper function for a more
|
||||
friendly API.
|
||||
@@ -715,7 +715,7 @@ class Elasticsearch(object):
|
||||
def msearch(self, body, index=None, doc_type=None, params=None):
|
||||
"""
|
||||
Execute several search requests within the same API.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-multi-search.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html>`_
|
||||
|
||||
:arg body: The request definitions (metadata-search request definition
|
||||
pairs), as either a newline separated string, or a sequence of
|
||||
@@ -736,7 +736,7 @@ class Elasticsearch(object):
|
||||
def delete_by_query(self, index, doc_type=None, body=None, params=None):
|
||||
"""
|
||||
Delete documents from one or more indices and one or more types based on a query.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-delete-by-query.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html>`_
|
||||
|
||||
:arg index: A comma-separated list of indices to restrict the operation;
|
||||
use `_all` to perform the operation on all indices
|
||||
@@ -775,7 +775,7 @@ class Elasticsearch(object):
|
||||
"""
|
||||
The suggest feature suggests similar looking terms based on a provided
|
||||
text by using a suggester.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-search.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to restrict the operation;
|
||||
use `_all` or empty string to perform the operation on all indices
|
||||
@@ -806,7 +806,7 @@ class Elasticsearch(object):
|
||||
The percolator allows to register queries against an index, and then
|
||||
send percolate requests which include a doc, and getting back the
|
||||
queries that match on that doc out of the set of registered queries.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-percolate.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-percolate.html>`_
|
||||
|
||||
:arg index: The index of the document being percolated.
|
||||
:arg doc_type: The type of the document being percolated.
|
||||
@@ -847,7 +847,7 @@ class Elasticsearch(object):
|
||||
The percolator allows to register queries against an index, and then
|
||||
send percolate requests which include a doc, and getting back the
|
||||
queries that match on that doc out of the set of registered queries.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-percolate.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-percolate.html>`_
|
||||
|
||||
:arg index: The index of the document being count percolated to use as
|
||||
default
|
||||
@@ -877,7 +877,7 @@ class Elasticsearch(object):
|
||||
The percolator allows to register queries against an index, and then
|
||||
send percolate requests which include a doc, and getting back the
|
||||
queries that match on that doc out of the set of registered queries.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-percolate.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-percolate.html>`_
|
||||
|
||||
:arg index: The index of the document being count percolated.
|
||||
:arg doc_type: The type of the document being count percolated.
|
||||
@@ -919,7 +919,7 @@ class Elasticsearch(object):
|
||||
def mlt(self, index, doc_type, id, body=None, params=None):
|
||||
"""
|
||||
Get documents that are "like" a specified document.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-more-like-this.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-more-like-this.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg doc_type: The type of the document (use `_all` to fetch the first
|
||||
@@ -970,7 +970,7 @@ class Elasticsearch(object):
|
||||
artificially provided by the user (Added in 1.4). Note that for
|
||||
documents stored in the index, this is a near realtime API as the term
|
||||
vectors are not available until the next refresh.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-termvectors.html>`
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html>`
|
||||
|
||||
:arg index: The index in which the document resides.
|
||||
:arg doc_type: The type of the document.
|
||||
@@ -1019,7 +1019,7 @@ class Elasticsearch(object):
|
||||
"""
|
||||
Multi termvectors API allows to get multiple termvectors based on an
|
||||
index, type and id.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html>`_
|
||||
|
||||
:arg index: The index in which the document resides.
|
||||
:arg doc_type: The type of the document.
|
||||
@@ -1065,7 +1065,7 @@ class Elasticsearch(object):
|
||||
"""
|
||||
The benchmark API provides a standard mechanism for submitting queries
|
||||
and measuring their performance relative to one another.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/search-benchmark.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -1082,7 +1082,7 @@ class Elasticsearch(object):
|
||||
def abort_benchmark(self, name=None, params=None):
|
||||
"""
|
||||
Aborts a running benchmark.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/search-benchmark.html>`_
|
||||
|
||||
:arg name: A benchmark name
|
||||
"""
|
||||
@@ -1094,7 +1094,7 @@ class Elasticsearch(object):
|
||||
def list_benchmarks(self, index=None, doc_type=None, params=None):
|
||||
"""
|
||||
View the progress of long-running benchmarks.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/search-benchmark.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -1108,7 +1108,7 @@ class Elasticsearch(object):
|
||||
def put_script(self, lang, id, body, params=None):
|
||||
"""
|
||||
Create a script in given language with specified ID.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html>`_
|
||||
|
||||
:arg lang: Script language
|
||||
:arg id: Script ID
|
||||
@@ -1128,7 +1128,7 @@ class Elasticsearch(object):
|
||||
def get_script(self, lang, id, params=None):
|
||||
"""
|
||||
Retrieve a script from the API.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html>`_
|
||||
|
||||
:arg lang: Script language
|
||||
:arg id: Script ID
|
||||
@@ -1146,7 +1146,7 @@ class Elasticsearch(object):
|
||||
def delete_script(self, lang, id, params=None):
|
||||
"""
|
||||
Remove a stored script from elasticsearch.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html>`_
|
||||
|
||||
:arg lang: Script language
|
||||
:arg id: Script ID
|
||||
@@ -1164,7 +1164,7 @@ class Elasticsearch(object):
|
||||
def put_template(self, id, body, params=None):
|
||||
"""
|
||||
Create a search template.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-template.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html>`_
|
||||
|
||||
:arg id: Template ID
|
||||
:arg body: The document
|
||||
@@ -1183,7 +1183,7 @@ class Elasticsearch(object):
|
||||
def get_template(self, id, params=None):
|
||||
"""
|
||||
Retrieve a search template.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-template.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html>`_
|
||||
|
||||
:arg id: Template ID
|
||||
:arg version: Explicit version number for concurrency control
|
||||
@@ -1199,7 +1199,7 @@ class Elasticsearch(object):
|
||||
def delete_template(self, id=None, params=None):
|
||||
"""
|
||||
Delete a search template.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-template.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html>`_
|
||||
|
||||
:arg id: Template ID
|
||||
:arg version: Explicit version number for concurrency control
|
||||
@@ -1213,7 +1213,7 @@ class Elasticsearch(object):
|
||||
'min_score', 'preference', 'routing', 'source')
|
||||
def search_exists(self, index=None, doc_type=None, body=None, params=None):
|
||||
"""
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-exists.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-exists.html>`_
|
||||
|
||||
:arg index: A comma-separated list of indices to restrict the results
|
||||
:arg doc_type: A comma-separated list of types to restrict the results
|
||||
|
||||
+14
-14
@@ -4,7 +4,7 @@ class CatClient(NamespacedClient):
|
||||
@query_params('h', 'help', 'local', 'master_timeout', 'v')
|
||||
def aliases(self, name=None, params=None):
|
||||
"""
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-alias.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html>`_
|
||||
|
||||
:arg name: A comma-separated list of alias names to return
|
||||
:arg h: Comma-separated list of column names to display
|
||||
@@ -24,7 +24,7 @@ class CatClient(NamespacedClient):
|
||||
"""
|
||||
Allocation provides a snapshot of how shards have located around the
|
||||
cluster and the state of disk usage.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-allocation.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html>`_
|
||||
|
||||
:arg node_id: A comma-separated list of node IDs or names to limit the
|
||||
returned information
|
||||
@@ -46,7 +46,7 @@ class CatClient(NamespacedClient):
|
||||
"""
|
||||
Count provides quick access to the document count of the entire cluster,
|
||||
or individual indices.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-count.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to limit the returned
|
||||
information
|
||||
@@ -67,7 +67,7 @@ class CatClient(NamespacedClient):
|
||||
"""
|
||||
health is a terse, one-line representation of the same information from
|
||||
:meth:`~elasticsearch.client.cluster.ClusterClient.health` API
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-health.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html>`_
|
||||
|
||||
:arg h: Comma-separated list of column names to display
|
||||
:arg help: Return help information, default False
|
||||
@@ -86,7 +86,7 @@ class CatClient(NamespacedClient):
|
||||
def help(self, params=None):
|
||||
"""
|
||||
A simple help for the cat api.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html>`_
|
||||
|
||||
:arg help: Return help information, default False
|
||||
"""
|
||||
@@ -97,7 +97,7 @@ class CatClient(NamespacedClient):
|
||||
def indices(self, index=None, params=None):
|
||||
"""
|
||||
The indices command provides a cross-section of each index.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-indices.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to limit the returned
|
||||
information
|
||||
@@ -120,7 +120,7 @@ class CatClient(NamespacedClient):
|
||||
def master(self, params=None):
|
||||
"""
|
||||
Displays the master's node ID, bound IP address, and node name.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-master.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html>`_
|
||||
|
||||
:arg h: Comma-separated list of column names to display
|
||||
:arg help: Return help information, default False
|
||||
@@ -138,7 +138,7 @@ class CatClient(NamespacedClient):
|
||||
def nodes(self, params=None):
|
||||
"""
|
||||
The nodes command shows the cluster topology.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-nodes.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html>`_
|
||||
|
||||
:arg h: Comma-separated list of column names to display
|
||||
:arg help: Return help information, default False
|
||||
@@ -156,7 +156,7 @@ class CatClient(NamespacedClient):
|
||||
def recovery(self, index=None, params=None):
|
||||
"""
|
||||
recovery is a view of shard replication.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-recovery.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to limit the returned
|
||||
information
|
||||
@@ -177,7 +177,7 @@ class CatClient(NamespacedClient):
|
||||
def shards(self, index=None, params=None):
|
||||
"""
|
||||
The shards command is the detailed view of what nodes contain which shards.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-shards.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to limit the returned
|
||||
information
|
||||
@@ -218,7 +218,7 @@ class CatClient(NamespacedClient):
|
||||
pending_tasks provides the same information as the
|
||||
:meth:`~elasticsearch.client.cluster.ClusterClient.pending_tasks` API
|
||||
in a convenient tabular format.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-pending-tasks.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html>`_
|
||||
|
||||
:arg h: Comma-separated list of column names to display
|
||||
:arg help: Return help information, default False
|
||||
@@ -236,7 +236,7 @@ class CatClient(NamespacedClient):
|
||||
def thread_pool(self, params=None):
|
||||
"""
|
||||
Get information about thread pools.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html>`_
|
||||
|
||||
:arg full_id: Enables displaying the complete node ids (default: 'false')
|
||||
:arg h: Comma-separated list of column names to display
|
||||
@@ -257,7 +257,7 @@ class CatClient(NamespacedClient):
|
||||
def fielddata(self, fields=None, params=None):
|
||||
"""
|
||||
Shows information about currently loaded fielddata on a per-node basis.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
|
||||
|
||||
:arg fields: A comma-separated list of fields to return the fielddata
|
||||
size
|
||||
@@ -280,7 +280,7 @@ class CatClient(NamespacedClient):
|
||||
@query_params('h', 'help', 'local', 'master_timeout', 'v')
|
||||
def plugins(self, params=None):
|
||||
"""
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-plugins.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-plugins.html>`_
|
||||
|
||||
:arg h: Comma-separated list of column names to display
|
||||
:arg help: Return help information, default False
|
||||
|
||||
@@ -7,7 +7,7 @@ class ClusterClient(NamespacedClient):
|
||||
def health(self, index=None, params=None):
|
||||
"""
|
||||
Get a very simple status on the health of the cluster.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-health.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html>`_
|
||||
|
||||
:arg index: Limit the information returned to a specific index
|
||||
:arg level: Specify the level of detail for returned information, default u'cluster'
|
||||
@@ -29,7 +29,7 @@ class ClusterClient(NamespacedClient):
|
||||
The pending cluster tasks API returns a list of any cluster-level
|
||||
changes (e.g. create index, update mapping, allocate or fail shard)
|
||||
which have not yet been executed.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-pending.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-pending.html>`_
|
||||
|
||||
:arg local: Return local information, do not retrieve the state from master node (default: false)
|
||||
:arg master_timeout: Specify timeout for connection to master
|
||||
@@ -43,7 +43,7 @@ class ClusterClient(NamespacedClient):
|
||||
def state(self, metric=None, index=None, params=None):
|
||||
"""
|
||||
Get a comprehensive state information of the whole cluster.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-state.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-state.html>`_
|
||||
|
||||
:arg metric: Limit the information returned to the specified metrics.
|
||||
Possible values: "_all", "blocks", "index_templates", "metadata",
|
||||
@@ -73,7 +73,7 @@ class ClusterClient(NamespacedClient):
|
||||
The Cluster Stats API allows to retrieve statistics from a cluster wide
|
||||
perspective. The API returns basic index metrics and information about
|
||||
the current nodes that form the cluster.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-stats.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html>`_
|
||||
|
||||
:arg node_id: A comma-separated list of node IDs or names to limit the
|
||||
returned information; use `_local` to return information from the node
|
||||
@@ -92,7 +92,7 @@ class ClusterClient(NamespacedClient):
|
||||
def reroute(self, body=None, params=None):
|
||||
"""
|
||||
Explicitly execute a cluster reroute allocation command including specific commands.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-reroute.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-reroute.html>`_
|
||||
|
||||
:arg body: The definition of `commands` to perform (`move`, `cancel`, `allocate`)
|
||||
:arg dry_run: Simulate the operation only and return the resulting state
|
||||
@@ -110,7 +110,7 @@ class ClusterClient(NamespacedClient):
|
||||
def get_settings(self, params=None):
|
||||
"""
|
||||
Get cluster settings.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-update-settings.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html>`_
|
||||
|
||||
:arg flat_settings: Return settings in flat format (default: false)
|
||||
:arg master_timeout: Explicit operation timeout for connection to master node
|
||||
@@ -123,7 +123,7 @@ class ClusterClient(NamespacedClient):
|
||||
def put_settings(self, body, params=None):
|
||||
"""
|
||||
Update cluster wide specific settings.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-update-settings.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html>`_
|
||||
|
||||
:arg body: The settings to be updated. Can be either `transient` or
|
||||
`persistent` (survives cluster restart).
|
||||
|
||||
@@ -7,7 +7,7 @@ class IndicesClient(NamespacedClient):
|
||||
def analyze(self, index=None, body=None, params=None):
|
||||
"""
|
||||
Perform the analysis process on a text and return the tokens breakdown of the text.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html>`_
|
||||
|
||||
:arg index: The name of the index to scope the operation
|
||||
:arg body: The text on which the analysis should be performed
|
||||
@@ -34,7 +34,7 @@ class IndicesClient(NamespacedClient):
|
||||
"""
|
||||
Explicitly refresh one or more index, making all operations performed
|
||||
since the last refresh available for search.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-refresh.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -58,7 +58,7 @@ class IndicesClient(NamespacedClient):
|
||||
def flush(self, index=None, params=None):
|
||||
"""
|
||||
Explicitly flush one or more indices.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-flush.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string for all indices
|
||||
@@ -84,7 +84,7 @@ class IndicesClient(NamespacedClient):
|
||||
def create(self, index, body=None, params=None):
|
||||
"""
|
||||
Create an index in Elasticsearch.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-create-index.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg body: The configuration for the index (`settings` and `mappings`)
|
||||
@@ -102,7 +102,7 @@ class IndicesClient(NamespacedClient):
|
||||
def get(self, index, feature=None, params=None):
|
||||
"""
|
||||
The get index API allows to retrieve information about one or more indexes.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-index.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names
|
||||
:arg feature: A comma-separated list of features
|
||||
@@ -125,7 +125,7 @@ class IndicesClient(NamespacedClient):
|
||||
def open(self, index, params=None):
|
||||
"""
|
||||
Open a closed index to make it available for search.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html>`_
|
||||
|
||||
:arg index: The name of the index
|
||||
:arg master_timeout: Specify timeout for connection to master
|
||||
@@ -150,7 +150,7 @@ class IndicesClient(NamespacedClient):
|
||||
"""
|
||||
Close an index to remove it's overhead from the cluster. Closed index
|
||||
is blocked for read/write operations.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html>`_
|
||||
|
||||
:arg index: A comma-separated list of indices to close; use `_all` or
|
||||
'*' to close all indices
|
||||
@@ -174,7 +174,7 @@ class IndicesClient(NamespacedClient):
|
||||
def delete(self, index, params=None):
|
||||
"""
|
||||
Delete an index in Elasticsearch
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-delete-index.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html>`_
|
||||
|
||||
:arg index: A comma-separated list of indices to delete; use `_all` or
|
||||
'*' to delete all indices
|
||||
@@ -192,7 +192,7 @@ class IndicesClient(NamespacedClient):
|
||||
def exists(self, index, params=None):
|
||||
"""
|
||||
Return a boolean indicating whether given index exists.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-exists.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html>`_
|
||||
|
||||
:arg index: A list of indices to check
|
||||
:arg allow_no_indices: Whether to ignore if a wildcard indices
|
||||
@@ -218,7 +218,7 @@ class IndicesClient(NamespacedClient):
|
||||
def exists_type(self, index, doc_type, params=None):
|
||||
"""
|
||||
Check if a type/types exists in an index/indices.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-types-exists.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` to check
|
||||
the types across all indices
|
||||
@@ -249,7 +249,7 @@ class IndicesClient(NamespacedClient):
|
||||
def put_mapping(self, doc_type, body, index=None, params=None):
|
||||
"""
|
||||
Register specific mapping definition for a specific type.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-put-mapping.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names the mapping should be
|
||||
added to (supports wildcards); use `_all` or omit to add the
|
||||
@@ -280,7 +280,7 @@ class IndicesClient(NamespacedClient):
|
||||
def get_mapping(self, index=None, doc_type=None, params=None):
|
||||
"""
|
||||
Retrieve mapping definition of index or index/type.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-mapping.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string for all indices
|
||||
@@ -304,7 +304,7 @@ class IndicesClient(NamespacedClient):
|
||||
def get_field_mapping(self, field, index=None, doc_type=None, params=None):
|
||||
"""
|
||||
Retrieve mapping definition of a specific field.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string for all indices
|
||||
@@ -331,7 +331,7 @@ class IndicesClient(NamespacedClient):
|
||||
def delete_mapping(self, index, doc_type, params=None):
|
||||
"""
|
||||
Delete a mapping (type) along with its data.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-delete-mapping.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-mapping.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names (supports wildcard);
|
||||
use `_all` for all indices
|
||||
@@ -351,7 +351,7 @@ class IndicesClient(NamespacedClient):
|
||||
def put_alias(self, name, index, body=None, params=None):
|
||||
"""
|
||||
Create an alias for a specific index/indices.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names the alias should
|
||||
point to (supports wildcards); use `_all` or omit to perform the
|
||||
@@ -373,7 +373,7 @@ class IndicesClient(NamespacedClient):
|
||||
def exists_alias(self, name, index=None, params=None):
|
||||
"""
|
||||
Return a boolean indicating whether given alias exists.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
|
||||
:arg name: A comma-separated list of alias names to return
|
||||
:arg index: A comma-separated list of index names to filter aliases
|
||||
@@ -400,7 +400,7 @@ class IndicesClient(NamespacedClient):
|
||||
def get_alias(self, index=None, name=None, params=None):
|
||||
"""
|
||||
Retrieve a specified alias.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
|
||||
:arg name: A comma-separated list of alias names to return
|
||||
:arg index: A comma-separated list of index names to filter aliases
|
||||
@@ -424,7 +424,7 @@ class IndicesClient(NamespacedClient):
|
||||
def get_aliases(self, index=None, name=None, params=None):
|
||||
"""
|
||||
Retrieve specified aliases
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to filter aliases
|
||||
:arg name: A comma-separated list of alias names to filter
|
||||
@@ -440,7 +440,7 @@ class IndicesClient(NamespacedClient):
|
||||
def update_aliases(self, body, params=None):
|
||||
"""
|
||||
Update specified aliases.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
|
||||
:arg body: The definition of `actions` to perform
|
||||
:arg master_timeout: Specify timeout for connection to master
|
||||
@@ -456,7 +456,7 @@ class IndicesClient(NamespacedClient):
|
||||
def delete_alias(self, index, name, params=None):
|
||||
"""
|
||||
Delete specific alias.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names (supports wildcards);
|
||||
use `_all` for all indices
|
||||
@@ -477,7 +477,7 @@ class IndicesClient(NamespacedClient):
|
||||
"""
|
||||
Create an index template that will automatically be applied to new
|
||||
indices created.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html>`_
|
||||
|
||||
:arg name: The name of the template
|
||||
:arg body: The template definition
|
||||
@@ -500,7 +500,7 @@ class IndicesClient(NamespacedClient):
|
||||
def exists_template(self, name, params=None):
|
||||
"""
|
||||
Return a boolean indicating whether given template exists.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html>`_
|
||||
|
||||
:arg name: The name of the template
|
||||
:arg local: Return local information, do not retrieve the state from
|
||||
@@ -521,7 +521,7 @@ class IndicesClient(NamespacedClient):
|
||||
def get_template(self, name=None, params=None):
|
||||
"""
|
||||
Retrieve an index template by its name.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html>`_
|
||||
|
||||
:arg name: The name of the template
|
||||
:arg flat_settings: Return settings in flat format (default: false)
|
||||
@@ -538,7 +538,7 @@ class IndicesClient(NamespacedClient):
|
||||
def delete_template(self, name, params=None):
|
||||
"""
|
||||
Delete an index template by its name.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html>`_
|
||||
|
||||
:arg name: The name of the template
|
||||
:arg master_timeout: Specify timeout for connection to master
|
||||
@@ -555,7 +555,7 @@ class IndicesClient(NamespacedClient):
|
||||
def get_settings(self, index=None, name=None, params=None):
|
||||
"""
|
||||
Retrieve settings for one or more (or all) indices.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-settings.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-settings.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -579,7 +579,7 @@ class IndicesClient(NamespacedClient):
|
||||
def put_settings(self, body, index=None, params=None):
|
||||
"""
|
||||
Change specific index level settings in real time.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html>`_
|
||||
|
||||
:arg body: The index settings to be updated
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
@@ -606,7 +606,7 @@ class IndicesClient(NamespacedClient):
|
||||
"""
|
||||
Create an index warmer to run registered search requests to warm up the
|
||||
index before it is available for search.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-warmers.html>`_
|
||||
|
||||
:arg name: The name of the warmer
|
||||
:arg body: The search request definition for the warmer (query, filters,
|
||||
@@ -641,7 +641,7 @@ class IndicesClient(NamespacedClient):
|
||||
def get_warmer(self, index=None, doc_type=None, name=None, params=None):
|
||||
"""
|
||||
Retreieve an index warmer.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-warmers.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to restrict the
|
||||
operation; use `_all` to perform the operation on all indices
|
||||
@@ -666,7 +666,7 @@ class IndicesClient(NamespacedClient):
|
||||
def delete_warmer(self, index, name, params=None):
|
||||
"""
|
||||
Delete an index warmer.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-warmers.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to delete warmers from
|
||||
(supports wildcards); use `_all` to perform the operation on all indices.
|
||||
@@ -686,7 +686,7 @@ class IndicesClient(NamespacedClient):
|
||||
def status(self, index=None, params=None):
|
||||
"""
|
||||
Get a comprehensive status information of one or more indices.
|
||||
`<http://elasticsearch.org/guide/reference/api/admin-indices-_/>`_
|
||||
`<http://elastic.co/guide/reference/api/admin-indices-_/>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -714,7 +714,7 @@ class IndicesClient(NamespacedClient):
|
||||
def stats(self, index=None, metric=None, params=None):
|
||||
"""
|
||||
Retrieve statistics on different operations happening on an index.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-stats.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -753,7 +753,7 @@ class IndicesClient(NamespacedClient):
|
||||
def segments(self, index=None, params=None):
|
||||
"""
|
||||
Provide low level segments information that a Lucene index (shard level) is built with.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-segments.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-segments.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -778,7 +778,7 @@ class IndicesClient(NamespacedClient):
|
||||
def optimize(self, index=None, params=None):
|
||||
"""
|
||||
Explicitly optimize one or more indices through an API.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-optimize.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-optimize.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -810,7 +810,7 @@ class IndicesClient(NamespacedClient):
|
||||
def validate_query(self, index=None, doc_type=None, body=None, params=None):
|
||||
"""
|
||||
Validate a potentially expensive query without executing it.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-validate.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-validate.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names to restrict the operation;
|
||||
use `_all` or empty string to perform the operation on all indices
|
||||
@@ -842,7 +842,7 @@ class IndicesClient(NamespacedClient):
|
||||
def clear_cache(self, index=None, params=None):
|
||||
"""
|
||||
Clear either all caches or specific cached associated with one ore more indices.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-clearcache.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index name to limit the operation
|
||||
:arg field_data: Clear field data
|
||||
@@ -876,7 +876,7 @@ class IndicesClient(NamespacedClient):
|
||||
The indices recovery API provides insight into on-going shard
|
||||
recoveries. Recovery status may be reported for specific indices, or
|
||||
cluster-wide.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-recovery.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -896,7 +896,7 @@ class IndicesClient(NamespacedClient):
|
||||
def snapshot_index(self, index=None, params=None):
|
||||
"""
|
||||
Explicitly perform a snapshot through the gateway of one or more indices (backup them).
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-gateway-snapshot.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-gateway-snapshot.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string for all indices
|
||||
@@ -919,7 +919,7 @@ class IndicesClient(NamespacedClient):
|
||||
def upgrade(self, index=None, params=None):
|
||||
"""
|
||||
Upgrade one or more indices to the latest format through an API.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-upgrade.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-upgrade.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
@@ -942,7 +942,7 @@ class IndicesClient(NamespacedClient):
|
||||
def get_upgrade(self, index=None, params=None):
|
||||
"""
|
||||
Monitor how much of one or more index is upgraded.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-upgrade.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-upgrade.html>`_
|
||||
|
||||
:arg index: A comma-separated list of index names; use `_all` or empty
|
||||
string to perform the operation on all indices
|
||||
|
||||
@@ -6,7 +6,7 @@ class NodesClient(NamespacedClient):
|
||||
"""
|
||||
The cluster nodes info API allows to retrieve one or more (or all) of
|
||||
the cluster nodes information.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-info.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html>`_
|
||||
|
||||
:arg node_id: A comma-separated list of node IDs or names to limit the
|
||||
returned information; use `_local` to return information from the
|
||||
@@ -28,7 +28,7 @@ class NodesClient(NamespacedClient):
|
||||
"""
|
||||
The nodes shutdown API allows to shutdown one or more (or all) nodes in
|
||||
the cluster.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html>`_
|
||||
|
||||
:arg node_id: A comma-separated list of node IDs or names to perform the
|
||||
operation on; use `_local` to perform the operation on the node
|
||||
@@ -46,7 +46,7 @@ class NodesClient(NamespacedClient):
|
||||
"""
|
||||
The cluster nodes stats API allows to retrieve one or more (or all) of
|
||||
the cluster nodes statistics.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html>`_
|
||||
|
||||
:arg node_id: A comma-separated list of node IDs or names to limit the
|
||||
returned information; use `_local` to return information from the
|
||||
@@ -84,7 +84,7 @@ class NodesClient(NamespacedClient):
|
||||
def hot_threads(self, node_id=None, params=None):
|
||||
"""
|
||||
An API allowing to get the current hot threads on each node in the cluster.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html>`_
|
||||
|
||||
:arg node_id: A comma-separated list of node IDs or names to limit the
|
||||
returned information; use `_local` to return information from the
|
||||
|
||||
@@ -5,7 +5,7 @@ class SnapshotClient(NamespacedClient):
|
||||
def create(self, repository, snapshot, body=None, params=None):
|
||||
"""
|
||||
Create a snapshot in repository
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
|
||||
:arg repository: A repository name
|
||||
:arg snapshot: A snapshot name
|
||||
@@ -26,7 +26,7 @@ class SnapshotClient(NamespacedClient):
|
||||
def delete(self, repository, snapshot, params=None):
|
||||
"""
|
||||
Deletes a snapshot from a repository.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
|
||||
:arg repository: A repository name
|
||||
:arg snapshot: A snapshot name
|
||||
@@ -44,7 +44,7 @@ class SnapshotClient(NamespacedClient):
|
||||
def get(self, repository, snapshot, params=None):
|
||||
"""
|
||||
Retrieve information about a snapshot.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
|
||||
:arg repository: A comma-separated list of repository names
|
||||
:arg snapshot: A comma-separated list of snapshot names
|
||||
@@ -62,7 +62,7 @@ class SnapshotClient(NamespacedClient):
|
||||
def delete_repository(self, repository, params=None):
|
||||
"""
|
||||
Removes a shared file system repository.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
|
||||
:arg repository: A comma-separated list of repository names
|
||||
:arg master_timeout: Explicit operation timeout for connection to master
|
||||
@@ -79,7 +79,7 @@ class SnapshotClient(NamespacedClient):
|
||||
def get_repository(self, repository=None, params=None):
|
||||
"""
|
||||
Return information about registered repositories.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
|
||||
:arg repository: A comma-separated list of repository names
|
||||
:arg master_timeout: Explicit operation timeout for connection to master
|
||||
@@ -95,7 +95,7 @@ class SnapshotClient(NamespacedClient):
|
||||
def create_repository(self, repository, body, params=None):
|
||||
"""
|
||||
Registers a shared file system repository.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
|
||||
:arg repository: A repository name
|
||||
:arg body: The repository definition
|
||||
@@ -114,7 +114,7 @@ class SnapshotClient(NamespacedClient):
|
||||
def restore(self, repository, snapshot, body=None, params=None):
|
||||
"""
|
||||
Restore a snapshot.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_
|
||||
|
||||
:arg repository: A repository name
|
||||
:arg snapshot: A snapshot name
|
||||
@@ -137,7 +137,7 @@ class SnapshotClient(NamespacedClient):
|
||||
Return information about all currently running snapshots. By specifying
|
||||
a repository name, it's possible to limit the results to a particular
|
||||
repository.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-snapshots.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html>`_
|
||||
|
||||
:arg repository: A repository name
|
||||
:arg snapshot: A comma-separated list of snapshot names
|
||||
@@ -153,7 +153,7 @@ class SnapshotClient(NamespacedClient):
|
||||
"""
|
||||
Returns a list of nodes where repository was successfully verified or
|
||||
an error message if verification process failed.
|
||||
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-snapshots.html>`_
|
||||
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html>`_
|
||||
|
||||
:arg repository: A repository name
|
||||
:arg master_timeout: Explicit operation timeout for connection to master
|
||||
|
||||
@@ -17,4 +17,4 @@ class PoolingConnection(Connection):
|
||||
return self._make_connection()
|
||||
|
||||
def _release_connection(self, con):
|
||||
self._free_connections.put(con)
|
||||
self._free_connections.put(con)
|
||||
|
||||
@@ -32,7 +32,7 @@ if sys.version_info[0] == 2:
|
||||
# only require thrift if we are going to use it
|
||||
if os.environ.get('TEST_ES_CONNECTION', None) == 'ThriftConnection':
|
||||
tests_require.append('thrift==0.9.1')
|
||||
tests_require.append('pylibmc==1.2.3')
|
||||
tests_require.append('pylibmc==1.4.1')
|
||||
|
||||
setup(
|
||||
name = 'elasticsearch',
|
||||
|
||||
@@ -9,25 +9,25 @@ class TestNormalizeHosts(TestCase):
|
||||
self.assertEquals([{}], _normalize_hosts(None))
|
||||
|
||||
def test_strings_are_used_as_hostnames(self):
|
||||
self.assertEquals([{"host": "elasticsearch.org"}], _normalize_hosts(["elasticsearch.org"]))
|
||||
self.assertEquals([{"host": "elastic.co"}], _normalize_hosts(["elastic.co"]))
|
||||
|
||||
def test_strings_are_parsed_for_port_and_user(self):
|
||||
self.assertEquals(
|
||||
[{"host": "elasticsearch.org", "port": 42}, {"host": "elasticsearch.com", "http_auth": "user:secret"}],
|
||||
_normalize_hosts(["elasticsearch.org:42", "user:secret@elasticsearch.com"])
|
||||
[{"host": "elastic.co", "port": 42}, {"host": "elastic.co", "http_auth": "user:secret"}],
|
||||
_normalize_hosts(["elastic.co:42", "user:[email protected]"])
|
||||
)
|
||||
|
||||
def test_strings_are_parsed_for_scheme(self):
|
||||
self.assertEquals(
|
||||
[
|
||||
{
|
||||
"host": "elasticsearch.org",
|
||||
"host": "elastic.co",
|
||||
"port": 42,
|
||||
"use_ssl": True,
|
||||
"use_ssl": True,
|
||||
'scheme': 'http'
|
||||
},
|
||||
{
|
||||
"host": "elasticsearch.com",
|
||||
"host": "elastic.co",
|
||||
"http_auth": "user:secret",
|
||||
"use_ssl": True,
|
||||
"port": 443,
|
||||
@@ -35,7 +35,7 @@ class TestNormalizeHosts(TestCase):
|
||||
'url_prefix': '/prefix'
|
||||
}
|
||||
],
|
||||
_normalize_hosts(["https://elasticsearch.org:42", "https://user:secret@elasticsearch.com/prefix"])
|
||||
_normalize_hosts(["https://elastic.co:42", "https://user:[email protected]/prefix"])
|
||||
)
|
||||
|
||||
def test_dicts_are_left_unchanged(self):
|
||||
@@ -43,8 +43,8 @@ class TestNormalizeHosts(TestCase):
|
||||
|
||||
def test_single_string_is_wrapped_in_list(self):
|
||||
self.assertEquals(
|
||||
[{"host": "elasticsearch.org"}],
|
||||
_normalize_hosts("elasticsearch.org")
|
||||
[{"host": "elastic.co"}],
|
||||
_normalize_hosts("elastic.co")
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user