Commit Graph

1051 Commits

Author SHA1 Message Date
Bichitra d3ffb321a6 fix error due to missing comma in between timeout and request_timeout in create method of client indices. 2019-09-07 23:05:00 +05:30
Philip Krauss 4312d9af5e Merge pull request #998 from philkra/doc-examples
Documentation Examples
2019-08-22 09:45:56 +02:00
Honza Král a40b7c73d7 version bump for 7.0.3 2019-08-21 17:53:23 +02:00
Honza Král 5c0cbc76b1 leftover square brackets 2019-08-21 17:47:23 +02:00
Honza Král d936ba3eb4 Do a git fetch instead of pull 2019-08-21 17:39:28 +02:00
Honza Král a98fa8ba9f Allow the use of scroll_id
Reverts breaking change in 8e92b85
2019-08-21 15:58:27 +02:00
Philip Krauss 1395ef97ca corrected asciidoc language identifier 2019-08-21 10:23:30 +02:00
Philip Krauss 06af6db247 doc examples for index, del, get & getting started 2019-08-20 14:53:22 +02:00
Philip Krauss 28920b5d59 Ensure a custom User-Agent header is not overwritten (#992) 2019-08-12 14:20:10 +02:00
Philip Krauss 100a2e623b Send User-Agent header identifying the Client (#991)
* send user agent header identifing the client

* no need to instantiate a new var

* add python version to user-agent
2019-08-08 08:50:11 -06:00
Honza Král 6dc6018a51 missing import 2019-07-28 00:02:31 +02:00
Honza Král 4b88e12a13 Do not sleep during the retry loop 2019-07-26 16:26:27 +02:00
Camilla a37a9f39da Merge pull request #973 from jtyoung/scroll-id-body
Pass scroll and scroll_id in the request body instead of as query params in scan
2019-07-16 22:47:14 +02:00
John Young 916a744baf Pass scroll and scroll_id in the request body instead of as query params 2019-06-20 11:26:46 -04:00
Nick Lang f0f3665e18 update the docs for 7 2019-06-19 10:18:53 +02:00
Richard Smith 2efba7e18a Update helpers.rst (#965) 2019-05-31 08:25:03 -06:00
Nick Lang a29ea990a7 Bump version to 7.0.2 2019-05-28 11:33:06 -06:00
Nick Lang a5d27e36a4 ml client has no method _bulk_body (#962)
* ml client has not method _bulk_body

Need to access the _bulk_body method from the client object

closes: #959

* update changelog too
2019-05-22 22:03:05 -05:00
Nick Lang 60d254860b Add support for using cloud_id when instantiating conections (#957)
* add cloud_id

* adding doc strings

* update changelog

* adding some tests to check for cloud_id

* update the read me
2019-05-21 21:21:34 -05:00
Nick Lang e1968ed95a Update the docs for compression. Closes #955 2019-05-17 13:33:51 -04:00
David Sanders 9f4baacb70 Fix typo in docstring (#956) 2019-05-17 10:53:03 -04:00
svalee 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 8ab66b9bde update example directory to work with Es 7 2019-05-11 09:41:48 -06:00
Nick Lang c4f0454285 Bump to version 7.0.1 2019-05-10 16:51:51 -06:00
Nick Lang 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 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 Soni 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 Lee 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 dd72153a71 Add ignore_throttled to query_params for search (#928) 2019-04-25 16:11:16 -06:00
Yaser Martinez Palenzuela 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 Enchev f47145ada6 Fix typo in utils.py docs (#927)
nad --> and
2019-04-09 14:40:02 -06:00
Slam 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 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 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 3c2509d29d Add resource type and resource id in TransportError Traceback (#909) 2019-03-28 14:17:47 -06:00
Michal Kuffa 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 dfcaea65e8 add time/size params in cat api (#882)
Thanks for the patch
2019-03-28 13:24:25 -06:00
Alvaro Olmedo Rodriguez 51ad5d3617 ssl_show_warn option added (#913)
* ssl_show_warn option added

* Typo fixed
2019-03-28 13:20:16 -06:00
Brad 2c6e60380a Add NullHandler to logger for all Python versions (#896) 2019-02-21 17:19:19 -07:00
Dimitrios Liappis 23c0e32777 Add include_type_name in pertinent indices operations (#902)
Closes #901
2019-02-07 06:46:00 -07:00
Asher Mancinelli 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 Bull 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 Marshall 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 Banuelos 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 Lang 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