Commit Graph
517 Commits
Author SHA1 Message Date
Honza Král d4efb81b06 Propagate request_timeout to scroll calls
Fixes #434
2016-08-29 15:46:46 +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 10c013a067 stored_fields=_parent no longer needed with 5.0 2016-07-28 11:29:01 +02:00
Honza Král 515197a903 Don't try and decode an empty body 2016-07-28 11:26:55 +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 311ac7c814 Allow specifying custom http headers 2016-07-12 18:13:48 +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 bf1892b36a ignore 404 in tearDown when deleting indices 2016-07-12 17:35:31 +02:00
Honza Král a53efe1705 Respect the transport_schema when constructing host 2016-06-28 16:44:58 +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
Juri HudolejevandHonza Král 9f2608c469 Fix HTTPS URL support (#411)
* Fix scheme for HTTPS URLs

For URLs like https://example.org scheme is currently set to 'http'.

* Revert "Fix scheme for HTTPS URLs"

This reverts commit 5dcee5bd2a8ce4453b495e637b283e7558718262.

* Fix HTTPS URL support
2016-06-20 13:08:36 +02:00
Honza Král a64fa04562 Adding the indices.shrink API 2016-06-10 14:55:40 +02:00
Adam ChainzandHonza Král 40db4b6228 Convert readthedocs links for their .org -> .io migration for hosted projects (#413)
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.
2016-06-08 14:41:44 +02:00
Honza Král 1e2770fb5d Change default size for scan to 1000
Fixes #408
2016-06-03 15:07:09 -07: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 1ce17950e0 Make sure scan helper cleans up after itself
Closes #389
2016-05-17 15:14:27 +02:00
Honza Král 7c305f1bc3 Fixes for Elasticsearch 5.0 2016-05-17 14:12:39 +02:00
Honza Král b83df5e832 hasHandlers is only valid since python 3.2 2016-04-27 17:37:35 +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 418b93bfec Do not warn on 404s when using HEAD method
Fixes #396
2016-04-27 13:21:47 +02:00
Honza Král f8b090c7cc retry on 502, 503 and 504 responses from ES 2016-04-26 20:08:06 +02:00
Honza Král cc14efd5df Only do tracer logging if there are handlers
Fixes #391, thanks cp2587 for the report!
2016-04-09 18:12:33 +02:00
Honza Král 6e94bf76ad 5.0 compatibility 2016-03-22 21:04:07 +01:00
Honza Král c51b8fdeef Refactored sniff_hosts for easier implementation of AsyncTransport 2016-03-14 22:23:04 +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
Grégory StarckandHonza Král 879de7549e Fixed a bare except
AFAIK the only exception which can occur here is one that the json.loads(..) could raise. So (TypeError or) ValueError.

So except on that. and also log a warning in such case.

bare excepts are 99.99% of the time simply bad/wrong. It's the case here.
2016-03-04 15:21:41 +01:00
Will McGinnis b0d3de0ada requested changes. 2016-03-03 19:50:17 -05:00
Will McGinnis 8a18e4c743 added close methods to everything below transport 2016-03-03 19:31:31 -05:00
Honza Král 4de7835d32 Use the copy we made for this thread, otherwise not thread safe
Fixes #371
2016-03-03 17:47:04 +01:00
Honza Král 1c7b23e214 version bump to 2.3.0 2016-02-29 22:44:24 +01:00
Honza Král 5dfd6985e5 Only pass in cert to request.session if client_cert specified 2016-02-29 22:39:58 +01:00
Rich MegginsonandHonza 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
Darryl RingandHonza Král a9b8f86547 Log response body for failed requests
Addresses #346
2016-02-01 09:32:43 +01:00
Honza Král 8342e0efb1 map already returns an iterator, no need to wrap it in iter
Thanks to andreip for pointing it out!
2016-01-15 14:15:53 +01:00
Honza Král 99c284d015 Fixing more typos. Thanks density!
ref #333
2016-01-12 11:33:03 +01:00
Honza Král 0f4fa3c97f Fixing typo in max_chunk_bytes
Fixes #333 Thanks kengruven
2016-01-07 20:35:27 +01:00
Honza Král 51defea8c9 Version bump 2016-01-05 12:01:57 +01:00
Michael GibsonandHonza 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 b62d950bb8 Make sure we always close the pool when doing parallel_bulk 2015-12-27 21:10:55 +01:00
Honza Král 74cb686538 Adding missing APIs 2015-12-27 21:10:51 +01:00
Honza Král c305dc5587 Don't force ascii when serializing to json 2015-12-13 20:30:28 -08:00
Alexei PetersandHonza Král b792be3652 add the ability to serialize uuid types 2015-12-13 19:08:55 -08:00
Honza Král a63bad4e1d Provide more documentation on _get_sniff_data 2015-12-07 18:41:13 +01:00
Honza Král a5aa160b81 Factored out the ES communication when sniffing
This should help with #312
2015-12-07 18:26:00 +01:00
Honza Král fb8eb4e385 Respect publish host when present on a node.
Closes #251. Thanks danpilch and bowensong for the patch!
2015-12-01 03:40:40 +01:00