Commit Graph
483 Commits
Author SHA1 Message Date
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
Honza Král efc1156bd5 add description of the basic params for Urllib3HttpConnection 2015-11-19 11:10:07 -06:00
Honza Král 24b4885240 dev version bump 2015-11-10 16:18:44 +09:00
Chris EarleandHonza Král f3315dc98d Adding assert_hostname and assert_fingerprint parameters to Urllib3HttpConnection 2015-11-10 16:15:56 +09:00
Honza Král ade841a680 Better exception representation 2015-11-04 19:21:29 +01:00
Honza Král 328bdb73bc Longer timeout for the test client to fix travis CI 2015-11-02 16:01:48 +01:00
Honza Král 1b60d9bf84 iElasticsearch 2.0 exposes just host:port in nodes.info
Fixes #293
2015-11-02 14:26:28 +01:00
Honza Král 5e97002f28 Fix documentation for the query param of the scan helper
Thanks apandita for the report!
2015-10-23 15:21:28 +02: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
Honza Král 8536a35dd0 Version bump 2015-10-19 16:29:05 +02:00
Dmitry SadovnychyiandHonza Král 2d04178215 Move import statement into a function
To fix a bug on App Engine where multiprocessing is not allowed.
Closes #282
2015-10-19 15:20:39 +02:00
Honza Král 1527177b5c Removing non-ascii quote 2015-10-14 00:15:42 +02:00
Honza Král fa62ae71bf Updated to latest 2.x compatibility 2015-10-14 00:06:27 +02:00
Honza Král af86fa8d61 2.0 version bump 2015-10-13 23:39:33 +02:00
Honza Král 22943e7e47 Move bulk helpers' docs outside of streaming_bulk's docstring 2015-10-11 23:45:09 +02:00
Honza Král 9d415fadef Adding tests for indexing strings via bulk helpers 2015-10-11 05:00:14 +02:00
Honza Král acde15e742 we use our own compat module, not six 2015-10-10 18:57:21 +02:00
Honza Král 92c1757ad1 Allow people to just pass raw json strings to bulk helpers
This should allow for significant speedups when indexing json documents
from a file
2015-10-10 18:40:18 +02:00
Honza Král 5d4640d4c2 Move parallel_bulk helper into helpers/__init__ 2015-10-10 18:35:50 +02:00
Honza Král ccef253001 Merge branch 'parallel' 2015-10-07 18:28:33 +02:00
Sujay MansinghandHonza Král e3d25e8fe3 [#256] Fix exception message
* Typo: Scrol -> Scroll
* We need to format the string with the args ourselves (ScanError won't
  do it).
  Otherwise the args in the ScanError won't be substituted.
2015-10-07 17:53:39 +02:00
Honza Král 6f7a56964c Removing ThriftConnection and MemcachedConnection 2015-10-07 17:47:05 +02:00
Honza Král 140ebd022f Have search_exists only return boolean like other exists APIs
Fixes #272
2015-10-07 17:36:12 +02:00
Honza Král 2ba03d261a greatly simplify parallel_bulk by using Pool.imap 2015-10-06 02:11:22 +02:00
Honza Král 2208387e0b Extract the processing of individual bulk request to a separate method 2015-10-06 02:10:42 +02:00
Honza Král a0e1bf61aa Experimental helper for doing bulk requests in parallel 2015-10-01 01:25:29 +02:00
Honza Král 3400179153 Allos the size of the bulk request to be defined in bytes
Fixes #199
2015-09-30 21:06:24 +02:00
Honza Král 928fc000d1 Serialize the data in bulk helper 2015-09-30 19:25:17 +02:00
Honza Král 9e4d0dd25d Move the bulk body construction into _chunk_actions 2015-09-30 19:16:21 +02:00
Honza Král a177375c25 Don't keep the data twice in bulk helper 2015-09-30 19:03:49 +02:00
Honza Král 0ad6b94d1e Extract chunking from streaming_bulk 2015-09-30 18:23:42 +02:00
Honza Král 14f5b35a23 Version bump 2015-09-21 20:06:03 +02:00
Honza Král 324599dd03 Added termvector API 2015-09-21 19:42:23 +02:00
Honza Král f929df2575 Merge remote-tracking branch 'pr/267' 2015-09-14 14:00:11 +02:00
Honza Král 64dde0c77d Merge remote-tracking branch 'pr/266' 2015-09-14 13:48:59 +02:00