Skip to content

including original document in case where an error is not raised but … #940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
c7450b4
including original document in case where an error is not raised but …
cyberintUser1 Apr 28, 2019
2aab285
Fixed illegal argument exception in indices.py as request_timeout is …
jubins Apr 29, 2019
01e6296
update test matrix
fxdgear May 9, 2019
206f5e2
Black (#948)
fxdgear May 10, 2019
8e92b85
Update ES client API's for some missing 7 features (#949)
fxdgear May 10, 2019
c4f0454
Bump to version 7.0.1
fxdgear May 10, 2019
8ab66b9
update example directory to work with Es 7
fxdgear May 11, 2019
b6fe0d4
Added equality check for Connection class (#938)
paulefoe May 15, 2019
9f4baac
Fix typo in docstring (#956)
dsanders11 May 17, 2019
e1968ed
Update the docs for compression. Closes #955
fxdgear May 17, 2019
60d2548
Add support for using `cloud_id` when instantiating conections (#957)
fxdgear May 22, 2019
a5d27e3
ml client has no method _bulk_body (#962)
fxdgear May 23, 2019
a29ea99
Bump version to 7.0.2
fxdgear May 28, 2019
2efba7e
Update helpers.rst (#965)
May 31, 2019
9680de1
empty
cyberintUser1 Jun 5, 2019
f0f3665
update the docs for 7
fxdgear Jun 19, 2019
916a744
Pass scroll and scroll_id in the request body instead of as query params
jtyoung Jun 20, 2019
a37a9f3
Merge pull request #973 from jtyoung/scroll-id-body
Jul 16, 2019
4b88e12
Do not sleep during the retry loop
honzakral Jul 26, 2019
6dc6018
missing import
honzakral Jul 27, 2019
100a2e6
Send User-Agent header identifying the Client (#991)
philkra Aug 8, 2019
28920b5
Ensure a custom User-Agent header is not overwritten (#992)
philkra Aug 12, 2019
06af6db
doc examples for index, del, get & getting started
philkra Aug 20, 2019
1395ef9
corrected asciidoc language identifier
philkra Aug 21, 2019
a98fa8b
Allow the use of scroll_id
honzakral Aug 21, 2019
d936ba3
Do a git fetch instead of pull
honzakral Aug 21, 2019
5c0cbc7
leftover square brackets
honzakral Aug 21, 2019
a40b7c7
version bump for 7.0.3
honzakral Aug 21, 2019
4312d9a
Merge pull request #998 from philkra/doc-examples
philkra Aug 22, 2019
4244f88
version bump for 7.0.4
honzakral Aug 22, 2019
d3ffb32
fix error due to missing comma in between timeout and request_timeout…
bichitraegregore Sep 7, 2019
66428e5
moved request_timeout to a new line
bichitra95 Sep 17, 2019
243e214
Merge pull request #1011 from bichitra95/hotfix/client_index_creat_qu…
philkra Sep 17, 2019
edb4de7
Merge branch 'master' of github.com:elastic/elasticsearch-py
honzakral Sep 17, 2019
a2a6d52
Fix docstring typos in /elasticsearch/transport.py
XD-DENG Sep 19, 2019
dd206ad
Merge pull request #1018 from XD-DENG/patch-1
philkra Sep 19, 2019
5f18f21
Fix issue caused by breaking change (_source_include/_source_exclude)
XD-DENG Sep 20, 2019
c4bc2e4
API key Authentication (#1010)
philkra Sep 20, 2019
9421f36
Merge pull request #1019 from XD-DENG/patch-2
philkra Sep 26, 2019
4c531c5
When turning of ssl verification, make sure it propagates to urllib3
honzakral Oct 1, 2019
a8c8587
Version bump
honzakral Oct 1, 2019
fc78c99
Take skipped shards as successful in scan helper
honzakral Oct 4, 2019
a2e9f0c
Closes #1044. Fixing bug with mark_dead in connection pool
Oct 29, 2019
0dcd2b5
Bring back travis
honzakral Oct 30, 2019
462c5d9
switch travis to using docker
honzakral Oct 30, 2019
f8b8431
Dropping 2.6 from travis
honzakral Oct 30, 2019
7785dd1
Adding indices.clone
honzakral Oct 30, 2019
ba234dc
Allow access to xpack methods without .xpack
honzakral Oct 30, 2019
4353aa2
declare python 3.7 support
rooterkyberian Oct 30, 2019
71840d3
Support http.publish_host addresses
vEpiphyte Oct 16, 2019
5c3ff5a
Add a unit test
vEpiphyte Oct 27, 2019
8542410
merge indices and xpack.indices
honzakral Oct 30, 2019
07314a1
Removes request_timeout params from indices handler
Oct 30, 2019
1438d66
Removing request_timeout from function doc strings
Oct 30, 2019
f1df7ae
Fix for 7.4 encoding change
chrisbennight Oct 18, 2019
8f5c60f
Proper import in Python2.x
chrisbennight Nov 6, 2019
39ada11
HTTP 405 when node_id is defined
nfsec Oct 17, 2019
4bdac2a
Minor Correction in exceptions.py
XD-DENG Sep 23, 2019
b6eaa3c
Complete exception docs
XD-DENG Sep 23, 2019
1bb8f50
Align order of arguments to put_mapping() in docs with code
iandanforth-alation Nov 7, 2019
07fef33
Version bump to 7.1.0
honzakral Nov 14, 2019
35afe32
fix typo in transport docs
LucaWintergerst Nov 21, 2019
a4aa42a
including original document in case where an error is not raised but …
cyberintUser1 Apr 28, 2019
171da93
Merge branch 'bugfix/include_original_doc' of github.com:cyberintUser…
Dec 13, 2019
912a4f0
Adds tests for pr #940
Dec 13, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .ci/test-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
ELASTICSEARCH_VERSION:
- 7.0.0-beta1
- 6.6.2
- 7.0.0
- 7.0.1


PYTHON_VERSION:
- 2.7
- 3.4
- 3.5
- 3.6
- 3.7
Expand Down
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: python

services:
- docker

python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"

env:
# different connection classes to test
- TEST_ES_CONNECTION=Urllib3HttpConnection
- TEST_ES_CONNECTION=RequestsHttpConnection

before_install:
- docker run --rm --detach --publish 9200:9200 --env "discovery.type=single-node" -e path.repo=/tmp -e "repositories.url.allowed_urls=http://*" -e node.attr.testattr=test -e node.name=test --name elasticsearch docker.elastic.co/elasticsearch/elasticsearch:7.4.0

install:
- git clone https://github.com/elastic/elasticsearch.git ../elasticsearch
- pip install .[develop]

script:
- python setup.py test
40 changes: 37 additions & 3 deletions Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,48 @@
Changelog
=========

7.0.0 (dev)
-----------
7.1.0 (2019-11-14)
------------------
* Fix sniffing with ``http.publish_host``
* Fix ``request_timeout`` for ``indices`` APIs
* Allow access to ``x-pack`` features without ``xpack`` namespace
* Fix mark dead

7.0.5 (2019-10-01)
------------------
* Fix ``verify_certs=False``

7.0.4 (2019-08-22)
------------------
* Fix wheel distribution

7.0.3 (2019-08-21)
------------------
* remove sleep in retries
* pass ``scroll_id`` through body in ``scroll``
* add ``user-agent``

7.0.2 (2019-05-29)
------------------
* Add connection parameter for Elastic Cloud cloud_id.
* ML client uses client object for _bulk_body requests

7.0.1 (2019-05-19)
------------------
* Use black to format the code.
* Update the test matrix to only use current pythons and 7.x ES
* Blocking pool must fit thread_count
* Update client to support missing ES 7 API's and query params.

7.0.0 (2019-04-11)
------------------
* Removed deprecated option ``update_all_types``.
* Using insecure SSL configuration (``verify_cert=False``) raises a warning, this can
be not showed with ``ssl_show_warn=False``
* Add support for 7.x api's in Elasticsearch both xpack and oss flavors

6.3.0 (2018-06-20)
-----------
------------------

* Add an exponential wait on delays
* Fix issues with dependencies
Expand Down
15 changes: 11 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,22 @@ Simple use-case::

# create an index in elasticsearch, ignore status code 400 (index already exists)
>>> es.indices.create(index='my-index', ignore=400)
{u'acknowledged': True}
{'acknowledged': True, 'shards_acknowledged': True, 'index': 'my-index'}

# datetimes will be serialized
>>> es.index(index="my-index", id=42, body={"any": "data", "timestamp": datetime.now()})
{u'_id': u'42', u'_index': u'my-index', u'_type': u'test-type', u'_version': 1, u'ok': True}
{'_index': 'my-index',
'_type': '_doc',
'_id': '42',
'_version': 1,
'result': 'created',
'_shards': {'total': 2, 'successful': 1, 'failed': 0},
'_seq_no': 0,
'_primary_term': 1}

# but not deserialized
>>> es.get(index="my-index", id=42)['_source']
{u'any': u'data', u'timestamp': u'2013-05-12T19:45:31.804229'}
{'any': 'data', 'timestamp': '2019-05-17T17:28:10.329598'}

`Full documentation`_.

Expand All @@ -97,7 +104,7 @@ Simple use-case::
Elastic Cloud (and SSL) use-case::

>>> from elasticsearch import Elasticsearch
>>> es = Elasticsearch("https://elasticsearch.url:port", http_auth=('elastic','yourpassword'))
>>> es = Elasticsearch(cloud_id="<some_long_cloud_id>", http_auth=('elastic','yourpassword'))
>>> es.info()

Using SSL Context with a self-signed cert use-case::
Expand Down
Loading