Commit Graph

304 Commits

Author SHA1 Message Date
Honza Král 82fa7b03a4 Enable users to override the client used in tests.
Fixes #7, thanks nkvoll!
2013-11-23 19:20:44 +01:00
Honza Král 5ce42094c6 Skip test for different op types before 0.90.1 2013-11-22 22:28:29 +01:00
Honza Král 5f8c5322b0 Have bulk tests work for 0.90.0 too 2013-11-22 16:05:51 +01:00
Honza Král 8e8981d9c9 New bulk docs updated 2013-11-22 14:38:38 +01:00
Honza Král 3ae44db90c Bulk helpers overhaul
streaming_bulk for iterative consumption of the input
bulk_index -> bulk
callback expand_action to transform input into action/data pairs
support for non-index actions through _op_type key
2013-11-22 14:29:08 +01:00
Honza Král a4e068c505 Fix the helpers tests.
ES doesn't guarantee that refresh will wait for cluster state
propagation and thus the type might not exist right after the index
being created during the bulk load. Just check the documents instead.
2013-11-19 22:33:53 +01:00
Honza Král 1c279d5aad By default allow 10 connections to be held to the server 2013-11-19 22:31:25 +01:00
Honza Král eed4698c2c Merge branch 'urllib3_pool_maxsize' of github.com:rboulton/elasticsearch-py 2013-11-19 22:29:08 +01:00
Richard Boulton 7c84613abc Document the format of the body parameter for bulk operations, and correct a couple of typos in the documentation. 2013-11-19 17:03:32 +00:00
Richard Boulton e8439372d6 Allow the maxsize parameter to be passed to the urllib3 connection pool 2013-11-19 16:45:39 +00:00
Honza Král 5557fbff1e Make sure jenkins output contains logs 2013-11-19 04:10:34 +01:00
Hari haran daad6eacca Spell mistake corrected 2013-11-18 02:17:17 +05:30
Honza Král 4bce8a464c Added more detailed error handling
namely being able to detect conflicts and bad requests
2013-11-14 01:12:55 +01:00
Honza Král 62738c85c4 Remove specific version from pip example in README 2013-11-13 02:58:42 +01:00
Murhaf Fares 5a4373b689 add how to install using pip
i couldn't find how to install elasticsearch package, and didn't know that you already deployed it to pip repository. now i know, and i think it's worth adding this piece of info to README.rst.
2013-11-12 15:22:07 +01:00
Honza Král e04b875ca7 Changer is 1.0 Beta2 2013-11-07 17:18:19 +02:00
Honza Král a8094486e0 Merge branch 'master' of github.com:obmarg/elasticsearch-py 2013-11-06 13:36:35 +02:00
Honza Král 98854b31e7 Strip excess '/' at the end of doc urls 2013-11-04 00:14:19 +01:00
Honza Král 68b19ebe55 Fixed test after log format change 2013-11-03 22:44:16 +01:00
Honza Král b8b9f67092 Logging fixes 2013-11-03 22:39:03 +01:00
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
Graeme Coupar 02b47b3f13 Added support for q parameter to delete_by_query 2013-10-30 12:47:53 +00: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