Commit Graph
44 Commits
Author SHA1 Message Date
Seth Michael LarsonandGitHub a728aaa491 [7.x] Sort imports with isort and regenerate APIs 2021-01-13 14:21:04 -06:00
bbb72cd932 [7.x] Allow '_shards.skipped' to be absent on scroll responses
Co-authored-by: Seth Michael Larson <[email protected]>
2020-11-20 16:41:58 -06:00
Seth Michael LarsonandGitHub b13c7c6217 [7.x] Switch to long Apache-2.0 license header 2020-07-02 13:15:25 -05:00
Seth Michael LarsonandSeth Michael Larson eaff4af910 [7.x] Switch to Pytest as default runner 2020-05-19 14:18:53 -05:00
Seth Michael LarsonandGitHub 9cc48b3e66 Update new APIs in 7.x 2020-05-08 16:07:52 -05:00
Seth Michael LarsonandSeth Michael Larson 8e1798cf31 Apply license header changes and API gen 2020-04-23 14:10:49 -05:00
Honza Král fc78c992ef Take skipped shards as successful in scan helper 2019-10-04 11:46:48 +02:00
Nick LangandGitHub 206f5e2754 Black (#948) 2019-05-10 09:16:33 -06:00
SlamandNick Lang 2181611a00 Scan refactor (#924)
* Adds scan test for exception & data yielded

* Adds scan test for fast route & initial search error

* Refactores scan implementation; better scroll test

* Adds tests clear_scroll & logger
2019-04-05 09:31:43 -06:00
Nick LangandGitHub 1afceba69b update to ES 7 (#911)
* update to ES 7

* more updates to make tests run

* update the test matrix

* remove python 3.3

* update xpack apis

* relative imports
2019-03-29 09:25:23 -06:00
MillyandNick Lang cd871244e0 TransportError not raised in helpers.streaming_bulk() with max_retries. (#775)
* Add test to raise `TransportError` in `helpers.streaming_bulk()` with `max_retries`.

* Re-raise `TransportError` if the last retry fails.
2018-04-24 11:35:54 -06:00
Honza Král 4e6f635711 6.x compatibility in tests 2017-08-01 15:54:59 -04:00
Honza Král 8f73594cac Tests for retry logic in streaming_bulk 2017-07-22 13:40:22 -04:00
Honza Král cd8aaf2c5e 5.0 compatibility 2016-10-17 13:57:10 +02:00
Honza Král 6e94bf76ad 5.0 compatibility 2016-03-22 21:04:07 +01:00
Honza Král ade841a680 Better exception representation 2015-11-04 19:21:29 +01:00
Honza Král 1378073e2d Moved helpers unit tests to test_helpers 2015-10-11 04:50:31 +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 b994d1d934 remove timestamp from reindex tests since it's deprecated in 2.0 2015-09-21 19:42:33 +02:00
Honza Král 36d8d4b545 2.0 compatibility 2015-08-25 01:21:45 +02:00
Honza Král 9c61a1140d 2.0 compatibility 2015-08-25 01:09:54 +02:00
Honza Král fdeb3d1131 Make sure reindex preserves _parent, _routing and _timestamp
Fixes #140
2015-06-20 00:27:08 +02:00
Honza Král 79ca075ab0 More sane defaults for helpers
Also make sure errors while scrolling will not be ignored
Fixes #194
2015-02-18 18:28:55 +01:00
Honza Král f065817e89 Add option to pass kwargs to scan and bulk in reindex helper 2015-01-30 00:04:04 +01:00
Honza Král 93d287d99c Added tests for raise_on_exception 2015-01-24 18:41:43 +01:00
Honza Král 1f0852bb92 Tests for reindex accepting a query 2015-01-16 16:34:44 +01:00
Honza Král 9b5d2c062e Add an option to use scan helper without search_type=scan, use with caution
Fixes #160
2014-12-15 15:15:03 +01:00
Honza Král be766b4a30 Adding a test for a single document in bulk helper 2014-06-04 15:11:39 +04:00
Honza Král 71176d5595 Provide helpers for running tests against elasticsearch 2014-04-23 01:12:03 +02:00
Honza Král 1345b36948 Make sure actions aren't modified when passed into bulk 2013-12-11 14:30:59 +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 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 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 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 44ed34771e Better tests for the bulk_index helper 2013-10-06 17:54:07 +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 af0202d89f slightly simpler tests 2013-08-01 16:04:56 +02:00
Honza Kral 1ee42ca17c Added a simple reindex helper 2013-08-01 15:05:29 +02:00
Honza Kral 29977efff4 Added a convenient scan heper API to iterate over docs 2013-08-01 14:57:08 +02:00
Honza Kral 5b1a2fd650 bulk_index helper to easily load docs into ES 2013-08-01 14:48:39 +02:00