svalee and Nick Lang
b6fe0d424f
Added equality check for Connection class ( #938 )
...
* Added equality check for Connection class
* ES: make connection hashable
2019-05-15 18:25:58 -04:00
Nick Lang
c4f0454285
Bump to version 7.0.1
2019-05-10 16:51:51 -06:00
Nick Lang and GitHub
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 Lang and GitHub
206f5e2754
Black ( #948 )
2019-05-10 09:16:33 -06:00
Jubin Soni and Nick 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
Christopher Lee and Nick 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 Portillo and Nick Lang
dd72153a71
Add ignore_throttled to query_params for search ( #928 )
2019-04-25 16:11:16 -06:00
Evgeni Enchev and Nick Lang
f47145ada6
Fix typo in utils.py docs ( #927 )
...
nad --> and
2019-04-09 14:40:02 -06:00
Slam and Nick 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 Johnson and Nick 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 Lang and GitHub
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
mazzma12 and Nick Lang
3c2509d29d
Add resource type and resource id in TransportError Traceback ( #909 )
2019-03-28 14:17:47 -06:00
Michal Kuffa and Nick 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 Zhang and Nick Lang
dfcaea65e8
add time/size params in cat api ( #882 )
...
Thanks for the patch
2019-03-28 13:24:25 -06:00
Alvaro Olmedo Rodriguez and Nick Lang
51ad5d3617
ssl_show_warn option added ( #913 )
...
* ssl_show_warn option added
* Typo fixed
2019-03-28 13:20:16 -06:00
Brad and Nick Lang
2c6e60380a
Add NullHandler to logger for all Python versions ( #896 )
2019-02-21 17:19:19 -07:00
Dimitrios Liappis and Nick Lang
23c0e32777
Add include_type_name in pertinent indices operations ( #902 )
...
Closes #901
2019-02-07 06:46:00 -07:00
Asher Mancinelli and Nick 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
Mike Marshall and Nick 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
Nick Lang and GitHub
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 Lang
dfb12a5334
bump version to 6.3.1
2018-11-16 09:42:11 -07:00
Akira Yumiyama and Nick 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ński and Nick Lang
b049b684bb
add timeout param to Tasks API ( closes #852 ) ( #853 )
2018-10-12 09:39:22 -06:00
Itay and Nick Lang
de8413fdbd
typo fix in helpers ( #854 )
2018-10-11 03:05:11 -06:00
Chris Wynne and Nick 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
Dmitri Vasilishin and Nick Lang
3f2b1b925a
Add support for allow_partial_search_results search request parameter ( #821 )
2018-07-16 11:59:51 -06:00
Dmitri Vasilishin and Nick 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 Lang
52006f4562
clean up docs, closes #800
2018-06-25 12:07:18 -06:00
Dmitry Vasilishin and Nick 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 Lang and GitHub
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
Nick Lang and GitHub
7751fede5a
add wait on delay ( #794 )
2018-05-18 14:30:31 -06:00
Nick Lang and GitHub
206e0d609c
handle gzip for python27. Fixes #789 ( #793 )
2018-05-18 13:52:37 -06:00
Ilya Radinsky and Nick Lang
4dc4ba18ad
Fixes double creation of urllib3.HTTPSConnectionPool when ssl_context and use_ssl are used ( #780 )
2018-05-01 13:54:17 -06:00
Nick Lang and GitHub
f77263e3bd
adding support for wait_for_no_initializing_shards in health method ( #777 )
2018-04-24 13:13:41 -06:00
Milly and Nick 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
Hendrik Muhs and Nick Lang
c505e53f6a
add forecast API to X-Pack, ML client ( #772 )
2018-04-20 14:13:06 -06:00
Nick Lang and GitHub
9721e4bc92
Nick/query params bulk helper ( #774 )
...
* cleanup doc strings closes #766
* adding *args to bulk helpers so values such as timeout can be passed in. Closes #773
2018-04-20 13:11:37 -06:00
wangxiaolei and Nick Lang
408093440c
Support terminate_after for count api. ( #754 )
2018-04-09 10:30:09 -06:00
Nick Lang
d46bbdf124
Bump to 6.2.0
2018-03-20 13:41:15 -05:00
Nick Lang and GitHub
4fda104d6e
Adding X-Pack clients to -py repo ( #748 )
2018-03-20 12:36:13 -06:00
Jai Sharma and Nick Lang
b5595d0fe3
Adding documentation for passing custom serializer ( #747 )
...
Adding custom serializer documentation on index page as well
2018-03-15 15:35:20 -06:00
robgil and Nick Lang
64c125d34c
Adding GZip support to urllib3 ( #704 )
...
* Adding GZip support to urllib3
* Adding compression documentation and example
* Convert to lowercase for consistency
* Moving header manipulation to __init__()
* Validating headers for compression
* Moving body compression out of the headers block
* Don't compress if there is no body
* Infer true
2018-03-13 10:34:25 -06:00
michaelboulton and Nick Lang
c3544296ef
Use string.partition rather than string.split for mimetype ( #731 )
2018-03-04 15:22:23 -08:00
ume and Nick Lang
4e95fe320d
Support renamed routing bulk parameter ( #735 )
2018-03-04 15:13:52 -08:00
Nick Lang and GitHub
058d38f0ae
Use use ssl_context or don't but don't mix ( #714 )
...
* Use original SSL process and add SSLContext
Not going to deprecate and replace with SSLContext.
But instead give option for using SSLContext next to the original way of
handling SSL.
2018-03-04 15:09:40 -08:00
Mike Sukmanowsky
197ad82e18
Use proper retry_on_conflict for helpers.expand_action
...
As per
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#bulk-update ,
retry_on_conflict should not be preceeded by an underscore.
2018-02-13 12:06:29 -05:00
Slam and Honza Král
64202273e0
adds dynamic class-based repr ( #713 )
2018-01-24 15:21:29 +01:00
Honza Král
eaa67a100d
use_ssl flag is set by Connection
...
This wasn't an issue before as scheme=https was not documented but now
it is in the docs and it makes this entire block be skipped if url is
given without scheme and no ssl_context is passed completely breaking
ssl
2018-01-18 16:12:07 +01:00