Commit Graph
1028 Commits
Author SHA1 Message Date
Nick Lang c4f0454285 Bump to version 7.0.1 2019-05-10 16:51:51 -06:00
Nick LangandGitHub 8e92b857bc Update ES client API's for some missing 7 features (#949)
* Update cat.py to have correct query params

* Add missing api remote_info and missing params

* a couple apis have had added query params

* Add Split api and add missing query params

* Adding processor_grok api

* Adding missing apis:
* update by query rethrottle
* scripts painless execute
* scripts painless context
* rank eval

* delete by query rethrottle

* add missing query params

* Add missing xpack apis

* Update helpers to account for 7.x scroll api
2019-05-10 16:41:50 -06:00
Nick LangandGitHub 206f5e2754 Black (#948) 2019-05-10 09:16:33 -06:00
Nick Lang 01e62965a1 update test matrix 2019-05-09 16:39:18 -06:00
Jubin SoniandNick Lang 2aab285c8f Fixed illegal argument exception in indices.py as request_timeout is expected instead of timeout. (#937)
The `timeout` parameter in docstring is misleading for following methods in elasticsearch.client.indices.py, renamed this param in query_params decorator and docstring to `request_timeout`:

1. create
2. open
3. close
4. delete
5. put_mapping
6. put_alias
7. update_aliases
8. delete_alias
9. put_template
10. delete_template
11. shrink
12. rollover
2019-04-29 14:45:59 -06:00
Nick Lang 45db46c855 upgrade start_elasticsearch to use 7.0.0 2019-04-26 12:05:30 -06:00
Christopher LeeandNick Lang fda9d3429c BlockingPool must fit thread_count (#894)
queue_size must be greater than or equal to thread_count, or else the main thread can hang trying to acquire a lock to write sentinel values to the queue during teardown.
2019-04-26 11:57:11 -06:00
Andrés PortilloandNick Lang dd72153a71 Add ignore_throttled to query_params for search (#928) 2019-04-25 16:11:16 -06:00
Yaser Martinez PalenzuelaandNick Lang 9cafeeb651 Update docs to v7 (#923) 2019-04-25 16:10:47 -06:00
Nick Lang 0b7220aa4a Update readme to reflect new versions 2019-04-12 09:14:03 -06:00
Evgeni EnchevandNick Lang f47145ada6 Fix typo in utils.py docs (#927)
nad --> and
2019-04-09 14:40:02 -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
Adam JohnsonandNick Lang cf1e946323 Document that 'index' may also be a list of strings for most methods (#921)
I discovered whilst researching https://github.com/scoutapp/scout_apm_python/issues/150 that the index parameter for all methods also supports a list of strings, but this isn't documented here. For example `elasticsearch-dsl-py` [always passes a list of strings](https://github.com/elastic/elasticsearch-dsl-py/blob/master/elasticsearch_dsl/search.py#L100).

It's [`_make_path`](https://github.com/elastic/elasticsearch-py/blob/master/elasticsearch/client/utils.py#L44) that allows this to happen.

This updates the relevant methods' documentation to indicate that it is supported.
2019-03-29 13:33:03 -06:00
Nick Lang f4c163dbc6 update versions and changelog to 7.x 2019-03-29 09:27:59 -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
mazzma12andNick Lang 3c2509d29d Add resource type and resource id in TransportError Traceback (#909) 2019-03-28 14:17:47 -06:00
Michal KuffaandNick Lang 300fb839fe Use relative imports in xpack module (#898)
To be consistent with the other part of library and to allow vendoring
without code change, use relative imports also in the
``elasticsearch.client.xpack`` module.
2019-03-28 14:13:12 -06:00
Loading ZhangandNick Lang dfcaea65e8 add time/size params in cat api (#882)
Thanks for the patch
2019-03-28 13:24:25 -06:00
Alvaro Olmedo RodriguezandNick Lang 51ad5d3617 ssl_show_warn option added (#913)
* ssl_show_warn option added

* Typo fixed
2019-03-28 13:20:16 -06:00
BradandNick Lang 2c6e60380a Add NullHandler to logger for all Python versions (#896) 2019-02-21 17:19:19 -07:00
Dimitrios LiappisandNick Lang 23c0e32777 Add include_type_name in pertinent indices operations (#902)
Closes #901
2019-02-07 06:46:00 -07:00
Asher MancinelliandNick Lang 85573db275 Restructuring helpers dir (#886)
* PEP8 formatting & package structuring

* adding internal function imports into helpers init

* changed absolute paths for mock

* removed debugging print statements

* resolving @fxdgear 's comment
2019-01-14 11:27:02 -08:00
Jonah BullandGitHub 3c8cfa17fe Merge pull request #884 from jonahbull/add-jjbb-jobs
Add JJBB jobs to .ci
2018-12-19 16:32:31 -06:00
Jonah Bull 5d077718d5 Add JJBB jobs to .ci 2018-12-19 15:59:00 -06:00
Mike MarshallandNick Lang 6cdf258f61 fix python 3.x str.decode exception (#877)
* fix python 3.x str.decode exception

* Moved try clause inside the if statement

* Moved try clause inside the if statement
2018-12-10 16:32:54 -07:00
Osvaldo BanuelosandNick Lang b8c241d5ec remove extraneous refresh() in example/load.py (#876)
After Git repo is loaded to ES through bulk(), Line 180 performs an index refresh to make documents available for searching. The same operation is then repeated in Line 188; remove this duplicate refresh.
2018-11-27 10:26:23 -07:00
Nick LangandGitHub f3f7266c1f better logic to handling unicode and chunking. (#870)
Chunking was looking at the length of a string but not accounting for the
byte length. closes #716
2018-11-26 10:58:47 -07:00
Nick LangandGitHub bafe65987c Fixing flaky test wrt mock and threading. (#875)
* Fixing flaky test wrt mock and threading.

Mock is apparetnly not threadsafe, and as a result will sometimes
cause tests to fail when we want to count the number of times a
mock function is called.

I've replaced the mock function with a side_effect, which allows for
locking and incrementing manually.

* put threading.Lock in globals
2018-11-26 10:10:12 -07:00
Nick Lang 0867a56ce3 update makefile to create a docker-compose project
this allows for running multiple versions of python/es at the same time
on a single host
2018-11-16 16:28:11 -07:00
Nick Lang dfb12a5334 bump version to 6.3.1 2018-11-16 09:42:11 -07:00
Nick LangandGitHub 4538df2aa0 Testing changes for Jenkins CI (#863)
* testing

* more fixes

* downgrade docker-compose file version cause jenkins

* fixing matrix

* back to elasticsearch_version

* skip py3.7 for now there's a bug

* add build badge and remove 3.3
Sphinx doesn't play nice with 3.3

* sphinx 1.7 drops support for python 3.3

* updating test matrix

* remove travis

* updating badges
2018-10-31 12:07:38 -06:00
Nick Lang c0d5f288c8 update runtests 2018-10-26 13:13:01 -06:00
Nick Lang 5bbaa77aa1 fixng formatting of matrix 2018-10-26 13:06:08 -06:00
Nick LangandGitHub 51c2c9f7ac In preparation for moving to Elastic's CI (#862)
* In preperation for moving to Elastic's CI

Add dockerfile to build image for testing python client in a docker container
add docker-compose to create environment for running tests against specific versions of ES
Add Makefile to make it easy to execute tests and cleanup
add wait-for-elasticsearch.sh script to wait for elasticsearch before executing the tests.

* add pull and comment about pushing requring auth

* spelling errors

* adding CI directory for jenkins to pick up

fixing typo too

* fix test-matrix and create working run-tests

* add comment about why skipping python 2.6

* adding dockerfiles to create base images for ci
2018-10-26 13:02:14 -06:00
Akira YumiyamaandNick Lang 3176f46ae8 TypeError: string indices must be integers in TransportError (#833)
* Add tests of TransportError

* Fix to work properly even if the error is not structured on TransportError
2018-10-12 09:42:47 -06:00
Maciej "RooTer" UrbańskiandNick Lang b049b684bb add timeout param to Tasks API (closes #852) (#853) 2018-10-12 09:39:22 -06:00
ItayandNick Lang de8413fdbd typo fix in helpers (#854) 2018-10-11 03:05:11 -06:00
Steven LoriaandNick Lang 47eab8cc0f Minor typo fixes on index page (#850) 2018-10-08 11:15:40 -06:00
Aly SivjiandNick Lang cb6f09bbe7 Fix bulk insert docs (#832) 2018-08-06 13:28:56 -06:00
Chris WynneandNick Lang 67deac55c4 Pass Retry object to urllib3 instead of False (#827)
By passing a `Retry` object to `urlopen` instead of just `False`, it
prevents `urllib3` from having to create a Retry object with `from_int`.

`from_int` emits an undesirable log message when called with
`retries=False`, and this can be avoided by the method described above.
2018-07-24 11:24:13 -07:00
Nick Lang bc4af210ab update certifi link. closes #822 2018-07-17 12:43:39 -07:00
Dmitri VasilishinandNick Lang 3f2b1b925a Add support for allow_partial_search_results search request parameter (#821) 2018-07-16 11:59:51 -06:00
Dmitri VasilishinandNick Lang dfd9e8d372 Deprecate the update_all_types option (#819)
This option makes no sense on indices that have only one type, which is enforced since 6.0.
2018-07-16 11:30:22 -06:00
Nick LangandGitHub d3204f6b71 add a small example, and reference bigger example. Closes #813 (#817) 2018-07-10 11:12:46 -06:00
Udit107710andNick Lang 82849a4a27 Update load.py (#795) 2018-06-26 11:09:17 -06:00
Nick LangandGitHub 656842feaf Get rid of managing list of authors manually and just link to contributors page (#812) 2018-06-25 15:43:43 -06:00
Nick Lang 52006f4562 clean up docs, closes #800 2018-06-25 12:07:18 -06:00
Dmitry VasilishinandNick Lang cab17fd449 Remove put_template and get_template endpoints (#803)
In ES 6.0 the search template system has changed over to stored scripts.
2018-06-25 12:02:25 -06:00
Nick LangandGitHub 2619d0fae4 TransportError correctly reflects inherited class. Closes #806. (#810) 2018-06-25 11:44:14 -06:00
Nick Lang e0fb772bcc Bump version to 6.3.0 2018-06-20 11:55:11 -06:00