Commit Graph
283 Commits
Author SHA1 Message Date
Honza Král 9e68ea91ed If we have sniffed no hosts, consider our sniff failed 2013-11-03 22:38:30 +01:00
Boaz Leskes a673682cb4 update urls to new website layout 2013-10-30 22:55:01 +01:00
Boaz Leskes 422d43f4f8 Added get_field_mapping API 2013-10-30 19:23:43 +01:00
Honza Král 04afc03cdd Thrift plugin uses different format in cluster stats 2013-10-29 17:45:49 +01:00
Honza Král 6454372da6 Allow people to import ThriftConnection from elasticsearch package itself 2013-10-29 15:30:58 +01:00
Rob Hudson d4eba59e3a Update __init__.py
Fixed documentation to match code argument order.
2013-10-26 14:53:01 -07:00
Honza Král 568ed079d1 Some additional documentation 2013-10-23 16:55:00 +02:00
Honza Král 1e99f51a30 Bump version to 0.4.3 2013-10-22 21:50:34 +02:00
Honza Král ce5b5a439a Added Changelog 2013-10-22 21:49:39 +02:00
Honza Král 2bd421f29d Add in __repr__ to client to simplify debugging 2013-10-22 01:23:12 +02:00
Honza Král 78d5a0b5a8 Be more benevolent when dealing with hosts parameter
This was mostly inspired by work on haystack for backwards compatibility
2013-10-22 01:22:47 +02:00
Honza Král 73f170f23f Decimal support
Currently only converting to floats which may lose some precision.
Not recommended in 2.6 where float to string serialization is sub-optimal
2013-10-22 00:26:58 +02:00
Honza Kral 2bb16fe7ed Make offset in search work. from is a reserved word in python so use from_
Fixes #13
Thanks llonchj,  danfairs, vanatteveldt and RonRothman!
2013-10-17 22:01:25 +02:00
Honza Kral 798778ee0a Cosmetic code changes to bulk_index 2013-10-14 23:58:17 +02:00
Honza Kral 174c431afb Add raise_on_error parameter to bulk_index to enable short-circuiting bulk loading 2013-10-14 23:50:42 +02:00
Honza Kral bf40da3cce ReST fix 2013-10-14 23:39:30 +02:00
Honza Kral e3ef25d5e4 Added a lint to full docs 2013-10-14 23:37:30 +02:00
Honza Kral d5285b09da Adding a reference tothe bulk_index helper from the bulk API 2013-10-14 23:33:16 +02:00
Honza Kral 4e56b4fbc1 Only collect info on failed docs when using the bulk_index helper 2013-10-14 23:33:16 +02:00
Honza Kral 64dd28fd8f Failed indexes in bulk_index do not contain theok flag 2013-10-14 23:33:16 +02:00
Honza Kral e6e1fd060e Make requests an optional dependency 2013-10-14 23:33:16 +02:00
Boaz Leskes 70829a219b upgrade submodule to the latest spec 2013-10-11 13:57:35 +02:00
Boaz Leskes f72e6488ee Normalizing the source filtering params of get_source with the rest of the API 2013-10-11 12:30:22 +02:00
Honza Kral 5b36475197 Updated the yaml test suite 2013-10-10 14:48:54 +02:00
Honza Kral 08a38844be Json does recognize ints 2013-10-10 13:56:56 +02:00
Honza Kral 61509723e6 Helper documentation tweaks 2013-10-10 13:20:42 +02:00
Honza Kral 8568388f29 cluster.health has a status key that should not be treated as http status 2013-10-10 13:20:00 +02:00
Honza Kral c9f21c3c4f Update the docstring for get_source to match reality 2013-10-09 10:12:35 +02:00
Boaz Leskes 1e52c17d1a updated source filtering tests and spec
Fixed id tests to be strings.
Changed the _source_* param of get_source as they have changed in core.
2013-10-08 18:18:20 +02:00
Boaz Leskes 225ccead0c The name parameter of indices.get_template is not required. 2013-10-08 18:15:09 +02:00
Honza Kral 553e42c29e New version to upload 2013-10-08 15:21:43 +02:00
Honza Kral 68e1829041 Inlude ID when bulk indexing documents through bulk_index helper 2013-10-06 17:54:36 +02:00
Honza Kral 44ed34771e Better tests for the bulk_index helper 2013-10-06 17:54:07 +02:00
Honza Kral cc524e9c9d Python 3 fix fo tests 2013-10-06 17:43:45 +02:00
Honza Kral a2b89e0b84 Moved RequestsHttpConnection to it's own module 2013-10-04 15:47:56 +02:00
Honza Kral 45403c9f2d Moved Urllib3HttpConnection to it's own module 2013-10-04 15:46:41 +02:00
Honza Kral 92c7dde5e0 Removing redundant code 2013-10-02 01:04:50 +02:00
Njal KarevollandHonza Kral 6a0f5c7646 urllib3: add a test to verify that providing http_auth as a list works 2013-10-02 01:01:30 +02:00
Honza Kral 1a9fd9e105 Remove duplicate test 2013-10-02 01:01:05 +02:00
Njal KarevollandHonza Kral 4037de58d0 requests: add tests to verify that providing http_auth as a list works and that the authorization headers are added to the request 2013-10-02 01:00:11 +02:00
Honza Kral b3c1170092 only require thrift if we are going to use it
This commit is mostly for travis since thrift has trouble downloading
at times.
2013-10-02 00:56:23 +02:00
Honza Kral a24337ca6b Updated rest api specs 2013-10-02 00:54:39 +02:00
Honza Kral 9baa8fb309 Tiny cleanup 2013-10-02 00:54:05 +02:00
Honza Kral 5fccd1e793 Allow lists for http_auth in RequestsHttpConnection
thanks nkvoll!
2013-10-02 00:42:38 +02:00
Honza Kral b0587071b6 Circumvent prepared requests from RequestsHttpConnection
this is because sesion.send(prepared_request) doesn't pass through auth
info. Thanks nkvoll!

Fixes #8
2013-10-02 00:39:19 +02:00
Honza Kral 4f890ff89c preserve ',' and '*' in url for nicer URLs in logs 2013-09-30 19:20:50 +02:00
Honza Kral a238144bc6 Lists can only contain strings in es api, also broke py3
This reverts commit 7eb4949641.
2013-09-30 19:15:03 +02:00
Honza Kral 17c4a3dd21 stats_only parameter to bulk_index helper for large loads` 2013-09-30 19:05:12 +02:00
Honza Kral 8f15b4edc0 Helpers documentation 2013-09-30 19:05:00 +02:00
Honza Kral e04a1d3c02 Double explain 2013-09-30 17:39:49 +02:00