Nick Lang and GitHub
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 Lang and GitHub
206f5e2754
Black ( #948 )
2019-05-10 09:16:33 -06:00
Jubin Soni and Nick 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 Portillo and Nick Lang
dd72153a71
Add ignore_throttled to query_params for search ( #928 )
2019-04-25 16:11:16 -06:00
Evgeni Enchev and Nick Lang
f47145ada6
Fix typo in utils.py docs ( #927 )
...
nad --> and
2019-04-09 14:40:02 -06:00
Adam Johnson and Nick 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 Lang and GitHub
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 Kuffa and Nick 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 Zhang and Nick Lang
dfcaea65e8
add time/size params in cat api ( #882 )
...
Thanks for the patch
2019-03-28 13:24:25 -06:00
Alvaro Olmedo Rodriguez and Nick Lang
51ad5d3617
ssl_show_warn option added ( #913 )
...
* ssl_show_warn option added
* Typo fixed
2019-03-28 13:20:16 -06:00
Dimitrios Liappis and Nick Lang
23c0e32777
Add include_type_name in pertinent indices operations ( #902 )
...
Closes #901
2019-02-07 06:46:00 -07:00
Maciej "RooTer" Urbański and Nick Lang
b049b684bb
add timeout param to Tasks API ( closes #852 ) ( #853 )
2018-10-12 09:39:22 -06:00
Dmitri Vasilishin and Nick Lang
3f2b1b925a
Add support for allow_partial_search_results search request parameter ( #821 )
2018-07-16 11:59:51 -06:00
Dmitri Vasilishin and Nick 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 Vasilishin and Nick 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 Lang and GitHub
f77263e3bd
adding support for wait_for_no_initializing_shards in health method ( #777 )
2018-04-24 13:13:41 -06:00
Hendrik Muhs and Nick Lang
c505e53f6a
add forecast API to X-Pack, ML client ( #772 )
2018-04-20 14:13:06 -06:00
Nick Lang and GitHub
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
wangxiaolei and Nick Lang
408093440c
Support terminate_after for count api. ( #754 )
2018-04-09 10:30:09 -06:00
Nick Lang and GitHub
4fda104d6e
Adding X-Pack clients to -py repo ( #748 )
2018-03-20 12:36:13 -06:00
Jai Sharma and Nick 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
Slam and Honza Král
64202273e0
adds dynamic class-based repr ( #713 )
2018-01-24 15:21:29 +01:00
Matthieu and Honza 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 Cova and Marco Cova
7599a248ca
fix typo in comment (minor)
2017-12-04 15:07:48 +00:00
Patryk Krawaczyński and GitHub
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ński and Honza Král
961f6b54b3
Update tasks API ( #659 )
...
* Update cat.py
* Update tasks.py
2017-10-26 14:51:37 +02:00
Glen Smith and Honza Král
cfec19afd8
Add bytes param to cat.shards and cat.segments ( #654 )
2017-10-11 22:16:50 +02:00
broono
12be146e45
Fix: AttributeError: 'bytes' object has no attribute 'encode'(PY3)
2017-10-09 13:47:36 +08:00
Joshua Carp
3045516738
Clean up custom headers.
2017-10-04 16:07:55 -04:00
Joshua Carp
073db90ae8
Set application/x-ndjson content type on bulk requests.
...
Resolves #609
2017-10-04 16:07:55 -04:00
Glen Smith
392aedda5d
Remove occurrences of non-ASCII chars from docs
2017-08-23 19:33:32 +02:00
Nick Lang and GitHub
843ce9ee24
Merge pull request #628 from fxdgear/nick/fix_encode_error
...
better handling of bytestrings in _escape
2017-08-08 14:13:21 -06:00
Nick Lang
a5b228a26d
better handling of bytestrings in _escape
...
Fixes #627
2017-08-08 12:50:04 -06:00
Honza Král
3be98b0a09
first pass for 6.0 compatibility
2017-07-31 19:17:52 -04:00
Honza Král
24169821ac
add the remote namespace
2017-06-14 19:25:53 +02:00
Honza Král
49af6df631
Added missing APIs
2017-06-14 19:25:11 +02:00
Patryk Krawaczyński and Honza Král
d67c483e1d
404 - Page Not Found ( #594 )
...
Task Management API moved to single page.
2017-05-21 14:06:07 -07:00
Honza Král
d336c571b9
[WIP] remove scheme checking
2017-05-15 22:01:54 +02:00
Patryk Krawaczyński and Honza Král
6ccc08520c
doc_type = type to sample ( #572 )
...
elasticsearch.exceptions.RequestError: TransportError(400, 'illegal_argument_exception', 'request [/_cluster/nodes/hotthreads] contains unrecognized parameter: [doc_type]')
https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html
2017-05-10 16:33:38 +02:00
Patrick Mézard and Honza Král
7f6d38273e
Unquote user:password in hosts ( #569 )
...
Before turning them into an authentication header, the user or password
supplied in hosts must be URL decoded.
The RFC https://tools.ietf.org/html/rfc3986 describes userinfo like:
userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
and python documentation about urlparse says:
The components are not broken up in smaller parts (for example, the
network location is a single string), and % escapes are not expanded.
It is the caller job to unquote them before using them.
For instance, a character like "]" cannot be supplied in a host or
urllib will incorrectly interpret it using ipv6 syntax.
Fix #568
2017-04-13 15:10:40 +02:00
Honza Král
fe897ebe0d
Wait_for_completion defaults to true
2017-03-26 14:11:01 +02:00
Honza Král
c32e3e52f7
new API compatibility
2017-03-21 13:49:17 +01:00
allias888 and Honza Král
05ad5ef96b
wait for completion is on by default ( #550 )
2017-03-12 14:51:40 -07:00
Glen Smith and GitHub
1d3e7022b5
Merge pull request #532 from keith-pinto/fix_doc
...
fix ordering of arguments in documentation for client's get method
2017-02-11 10:54:26 -07:00
keith pinto
52f8fd86ac
fix order of arguments in documentation for client's get method
2017-02-09 04:57:42 +05:30
Honza Král
a180459d69
Update API parameters to 5.x
2017-02-08 21:07:29 +01:00
Honza Král
a96f5f7284
Sending raw text as body is no longer supported, wrap scroll_id
2017-02-08 20:51:13 +01:00
Honza Král
f38fa51fea
When user is passing params we need to make a copy
...
Fixes #517
2017-01-17 03:10:50 +01:00
Honza Král
0bf58d7717
Updated API
2017-01-11 15:42:33 +01:00