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
Noah Wood and Honza Král
2bc407e633
add '_mapping' to exists_type path ( #473 )
...
This adds ‘_mapping’ to the path for exists_type to avoid the
deprecation warning consistent with:
https://github.com/elastic/elasticsearch/commit/a4ea7e72234b480f89e8c59b
b12061be11172db1
2016-11-30 12:53:56 +01:00
Honza Král
a2cd22dbf6
New create API for 5.0
2016-10-19 03:01:27 +02:00
Honza Král
cd8aaf2c5e
5.0 compatibility
2016-10-17 13:57:10 +02:00
Honza Král
87bf9866a4
Catch up to elasticsearch master
2016-08-16 21:23:14 +02:00
Honza Král
c855adc6e6
None for parameter value should cause that param to be ignored
...
Fixes #375
2016-08-16 20:46:04 +02:00
Honza Král
9cdcc5b4dd
Adding new params for cluster.health and cluster.allocation_explain
2016-07-14 17:29:33 +02:00
Honza Král
fb8b55284a
Do not use weakref to refer to client
2016-07-12 22:46:15 +02:00
Honza Král
ef41d893aa
fields was renamed to stored_fields in elasticsearch
2016-07-12 17:52:50 +02:00
Honza Král
a359c5fba2
Elasticsearch 5.0 APIs
2016-06-28 16:38:32 +02:00
Honza Král
f28b634e17
simplify init code
2016-06-28 00:40:06 +02:00
Honza Král
a64fa04562
Adding the indices.shrink API
2016-06-10 14:55:40 +02:00
Honza Král
e144a9d136
Pass scroll_id in the body to clear_scroll
...
Fixes #406 , thanks danielmitterdorfer!
2016-05-19 16:45:40 +02:00
Honza Král
7c305f1bc3
Fixes for Elasticsearch 5.0
2016-05-17 14:12:39 +02:00
Honza Král
6722bbff63
Make ping return false on any TransportError
...
Closes #388
2016-04-27 16:14:47 +02:00
Honza Král
6e94bf76ad
5.0 compatibility
2016-03-22 21:04:07 +01:00
Honza Král
64ff08b2ae
Move HEAD handling to Transport
2016-03-10 19:06:20 +01:00
Honza Král
38bb0aafbd
Have transport.perform_request only return data
2016-03-10 18:59:31 +01:00
Rich Megginson and Honza Král
fe6e9a7f5c
Urllib3HttpConnection should have separate client_cert and client_key arguments #344
...
https://github.com/elastic/elasticsearch-py/issues/344
Add a client_key parameter to complement the client_cert parameter. If
client_key is used, it is assumed that client_cert will contain only the
certificate, not the combined cert and key in a single file.
Closes #344
2016-02-29 22:35:40 +01:00
Michael Gibson and Honza Král
70d6203625
Add bytes param to cat.shards and cat.segments
2015-12-27 15:50:48 -05:00
Honza Král
ad9b5b6282
Fixed docs for from in search API
...
Fixes #318 Thanks ksindi!
2015-12-27 15:27:42 -05:00
Honza Král
74cb686538
Adding missing APIs
2015-12-27 21:10:51 +01:00
David Thornton
85928a5f3f
fixed slight typo in decription of timeout in put_alias and delete_alias
2015-10-21 11:31:29 -04:00