Commit Graph
318 Commits
Author SHA1 Message Date
Francesco VigliaturoandHonza Král 6c5ff986fe adds python client support for 7.5 2020-01-09 16:16:01 +00:00
Honza Král 80da0a5960 Some rest-api-spec definitions are non ascii 2019-12-22 20:50:17 +01:00
Honza Král 77f084dc0d Move templates to files 2019-12-22 16:32:49 +01:00
Honza Král 869c35f551 Fixed generator, passing tests 2019-12-22 16:32:49 +01:00
Honza Král ffe00d0c38 Generated API 2019-12-22 16:32:49 +01:00
Honza Král d8d1b4b0fa Flatten namespaces, keep xpack access as failover 2019-12-22 16:32:49 +01:00
Francesco VigliaturoandGitHub d2a0cc62eb fix host arg docs in the Elasticsearch class (#1069)
* updated the __init__ docs of the Elasticsearch class to reflect the fact that is possible to pass a string representing the URL of the host we want to connect to and not necessarily a list of hosts

* adds space between as and kwargs in Elasticsearch __init__ doc
2019-12-16 14:36:34 +01:00
Ian DanforthandHonza Král 1bb8f50f58 Align order of arguments to put_mapping() in docs with code 2019-11-08 17:42:29 -05:00
Patryk KrawaczyńskiandHonza Král 39ada119fe HTTP 405 when node_id is defined
_make_path encodes "/" - so the request looks like: GET /_cluster%2Fstats%2Fnodes/node_id and elastic returns a 405 error.
2019-11-08 17:20:28 -05:00
Chris BandHonza Král f1df7ae604 Fix for 7.4 encoding change 2019-11-06 17:02:02 +01:00
Alex KahanandHonza Král 1438d66045 Removing request_timeout from function doc strings 2019-11-05 22:19:17 +01:00
Alex KahanandHonza Král 07314a1cc7 Removes request_timeout params from indices handler 2019-11-05 22:19:17 +01:00
Honza Král 8542410c3c merge indices and xpack.indices 2019-10-30 19:06:39 +01:00
Honza Král ba234dcf03 Allow access to xpack methods without .xpack 2019-10-30 18:27:46 +01:00
Honza Král 7785dd150d Adding indices.clone 2019-10-30 18:08:31 +01:00
XiaodongandGitHub 5f18f216bd Fix issue caused by breaking change (_source_include/_source_exclude) 2019-09-20 16:36:09 +08:00
Bichitra 66428e5a1d moved request_timeout to a new line 2019-09-17 13:08:17 +05:30
Bichitra d3ffb321a6 fix error due to missing comma in between timeout and request_timeout in create method of client indices. 2019-09-07 23:05:00 +05:30
Honza Král 5c0cbc76b1 leftover square brackets 2019-08-21 17:47:23 +02:00
Honza Král a98fa8ba9f Allow the use of scroll_id
Reverts breaking change in 8e92b85
2019-08-21 15:58:27 +02:00
Nick LangandGitHub a5d27e36a4 ml client has no method _bulk_body (#962)
* ml client has not method _bulk_body

Need to access the _bulk_body method from the client object

closes: #959

* update changelog too
2019-05-22 22:03:05 -05:00
David SandersandNick Lang 9f4baacb70 Fix typo in docstring (#956) 2019-05-17 10:53:03 -04:00
Nick LangandGitHub 8e92b857bc Update ES client API's for some missing 7 features (#949)
* Update cat.py to have correct query params

* Add missing api remote_info and missing params

* a couple apis have had added query params

* Add Split api and add missing query params

* Adding processor_grok api

* Adding missing apis:
* update by query rethrottle
* scripts painless execute
* scripts painless context
* rank eval

* delete by query rethrottle

* add missing query params

* Add missing xpack apis

* Update helpers to account for 7.x scroll api
2019-05-10 16:41:50 -06:00
Nick LangandGitHub 206f5e2754 Black (#948) 2019-05-10 09:16:33 -06:00
Jubin SoniandNick Lang 2aab285c8f Fixed illegal argument exception in indices.py as request_timeout is expected instead of timeout. (#937)
The `timeout` parameter in docstring is misleading for following methods in elasticsearch.client.indices.py, renamed this param in query_params decorator and docstring to `request_timeout`:

1. create
2. open
3. close
4. delete
5. put_mapping
6. put_alias
7. update_aliases
8. delete_alias
9. put_template
10. delete_template
11. shrink
12. rollover
2019-04-29 14:45:59 -06:00
Andrés PortilloandNick Lang dd72153a71 Add ignore_throttled to query_params for search (#928) 2019-04-25 16:11:16 -06:00
Evgeni EnchevandNick Lang f47145ada6 Fix typo in utils.py docs (#927)
nad --> and
2019-04-09 14:40:02 -06:00
Adam JohnsonandNick Lang cf1e946323 Document that 'index' may also be a list of strings for most methods (#921)
I discovered whilst researching https://github.com/scoutapp/scout_apm_python/issues/150 that the index parameter for all methods also supports a list of strings, but this isn't documented here. For example `elasticsearch-dsl-py` [always passes a list of strings](https://github.com/elastic/elasticsearch-dsl-py/blob/master/elasticsearch_dsl/search.py#L100).

It's [`_make_path`](https://github.com/elastic/elasticsearch-py/blob/master/elasticsearch/client/utils.py#L44) that allows this to happen.

This updates the relevant methods' documentation to indicate that it is supported.
2019-03-29 13:33:03 -06:00
Nick LangandGitHub 1afceba69b update to ES 7 (#911)
* update to ES 7

* more updates to make tests run

* update the test matrix

* remove python 3.3

* update xpack apis

* relative imports
2019-03-29 09:25:23 -06:00
Michal KuffaandNick Lang 300fb839fe Use relative imports in xpack module (#898)
To be consistent with the other part of library and to allow vendoring
without code change, use relative imports also in the
``elasticsearch.client.xpack`` module.
2019-03-28 14:13:12 -06:00
Loading ZhangandNick Lang dfcaea65e8 add time/size params in cat api (#882)
Thanks for the patch
2019-03-28 13:24:25 -06:00
Alvaro Olmedo RodriguezandNick Lang 51ad5d3617 ssl_show_warn option added (#913)
* ssl_show_warn option added

* Typo fixed
2019-03-28 13:20:16 -06:00
Dimitrios LiappisandNick Lang 23c0e32777 Add include_type_name in pertinent indices operations (#902)
Closes #901
2019-02-07 06:46:00 -07:00
Maciej "RooTer" UrbańskiandNick Lang b049b684bb add timeout param to Tasks API (closes #852) (#853) 2018-10-12 09:39:22 -06:00
Dmitri VasilishinandNick Lang 3f2b1b925a Add support for allow_partial_search_results search request parameter (#821) 2018-07-16 11:59:51 -06:00
Dmitri VasilishinandNick Lang dfd9e8d372 Deprecate the update_all_types option (#819)
This option makes no sense on indices that have only one type, which is enforced since 6.0.
2018-07-16 11:30:22 -06:00
Nick Lang 52006f4562 clean up docs, closes #800 2018-06-25 12:07:18 -06:00
Dmitry VasilishinandNick Lang cab17fd449 Remove put_template and get_template endpoints (#803)
In ES 6.0 the search template system has changed over to stored scripts.
2018-06-25 12:02:25 -06:00
Nick LangandGitHub f77263e3bd adding support for wait_for_no_initializing_shards in health method (#777) 2018-04-24 13:13:41 -06:00
Hendrik MuhsandNick Lang c505e53f6a add forecast API to X-Pack, ML client (#772) 2018-04-20 14:13:06 -06:00
Nick LangandGitHub 9721e4bc92 Nick/query params bulk helper (#774)
* cleanup doc strings closes #766

* adding *args to bulk helpers so values such as timeout can be passed in. Closes #773
2018-04-20 13:11:37 -06:00
wangxiaoleiandNick Lang 408093440c Support terminate_after for count api. (#754) 2018-04-09 10:30:09 -06:00
Nick LangandGitHub 4fda104d6e Adding X-Pack clients to -py repo (#748) 2018-03-20 12:36:13 -06:00
Jai SharmaandNick Lang b5595d0fe3 Adding documentation for passing custom serializer (#747)
Adding custom serializer documentation on index page as well
2018-03-15 15:35:20 -06:00
SlamandHonza Král 64202273e0 adds dynamic class-based repr (#713) 2018-01-24 15:21:29 +01:00
MatthieuandHonza Král 83a26ec78a fix python 3.5/6 warnings: [...]/elasticsearch/client/__init__.py:884: DeprecationWarning: invalid escape sequence \_ (#665)
https://bugs.python.org/issue27364
2018-01-01 16:07:22 +01:00
Marco CovaandMarco Cova 7599a248ca fix typo in comment (minor) 2017-12-04 15:07:48 +00:00
Patryk KrawaczyńskiandGitHub b79364f0b8 Unrecognized parameter: wait_for_merge
```
curl -XPOST 'http://es:9200/index/_forcemerge?flush=true&wait_for_merge=true&ignore_unavailable=true&max_num_segments=1'
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/lindex/_forcemerge] contains unrecognized parameter: [wait_for_merge]"}],"type":"illegal_argument_exception","reason":"request [/index/_forcemerge] contains unrecognized parameter: [wait_for_merge]"},"status":400}
```
2017-11-03 14:57:56 +01:00
Patryk KrawaczyńskiandHonza Král 961f6b54b3 Update tasks API (#659)
* Update cat.py

* Update tasks.py
2017-10-26 14:51:37 +02:00
Glen SmithandHonza Král cfec19afd8 Add bytes param to cat.shards and cat.segments (#654) 2017-10-11 22:16:50 +02:00