A Twisted Elasticsearch client loosely based on PyES.
|travis| |coveralls| |docs|
|code_issues|
.. |travis| image:: https://travis-ci.org/lextoumbourou/txes2.svg?branch=master :target: https://travis-ci.org/lextoumbourou/txes2 .. |coveralls| image:: https://coveralls.io/repos/lextoumbourou/txes2/badge.png?branch=master :target: https://coveralls.io/r/lextoumbourou/txes2?branch=master .. |code_issues| image:: http://www.quantifiedcode.com/api/v1/project/407655c0058649998742e2bb654db68e/badge.svg :target: http://www.quantifiedcode.com/app/project/407655c0058649998742e2bb654db68e .. |docs| image:: https://readthedocs.org/projects/txes2/badge/?version=latest :target: https://readthedocs.org/projects/txes2/?badge=latest
This repo is simply a fork of txes <https://github.com/jkoelker/txes>
, however, the API has changed enough that I believe a name change was warranted. I also am not representing it as a fork on Github to avoid getting it confused with the 12 other forks of txes that have taken the software in different directions. So for clarity: I am not the original author of this library, jkoelker <https://github.com/jkoelker>
is. Thanks to all the other contributers who helped make this happen, listed in the Contributors_ section.
Available at Read The Docs <https://txes2.readthedocs.org/en/latest/>
_.
.. _Contributors:
BSD (as per original project).
2.1.0 ^^^^^^
2.0.1 ^^^^^^
ElasticSearch
to Elasticsearch
(old name will still be available for backwards compatilibity).Elasticsearch.scroller
method and converted scan
method into a scroller with _doc
ordering (thanks @bra-fsn).Scroller.delete
method for clearing scroller when finished.2.0.0 ^^^^^^
Support for ES 2.x (tested on ES 2.4.2).
Removed more_like_this <https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-more-like-this.html>
_ method.
delete_by_query <https://www.elastic.co/guide/en/elasticsearch/reference/1.7/docs-delete-by-query.html>
_ method.*_river <https://www.elastic.co/blog/deprecating-rivers>
_ methods.create_index_if_missing
method.delete_index_if_exists
method.0.6.0 (Unreleased) ^^^^^
0.5.0 ^^^^^
0.4.0 ^^^^^
script_file
arg in partial_update
(thanks @bra-fsn). 0.3.0 ^^^^^
scan
method (thanks @bra-fsn) and deprecated old methods.0.2.3 ^^^^^
0.2.2 ^^^^^
partial_update
method.0.2.1 ^^^^^
partial_update
method.0.2.0 ^^^^^
query_params
is used consistently across API.0.1.8 ^^^^^
0.1.7 ^^^^^
0.1.6 ^^^^^
0.1.5 ^^^^^
scan
method.0.1.4 ^^^^^
delete_by_query
method.reindex
method (relied on an obscure fork of ES).0.1.3 ^^^^^
0.1.0 ^^^^^
If you contribute to this project, feel free to add your name and/or Github username here.
Jason KΓΆlker (@jkoelker) <https://github.com/jkoelker>
_ - original authorZuhaib Siddique (@zsiddique) <https://github.com/zsiddique>
_Lex Toumbourou (@lextoumbourou) <https://github.com/lextoumbourou>
_ - current maintainerJon Waterhouse (@jwaterhouse) <https://github.com/jwaterhouse>
_ - ES 5 compatibilityBumps ipython from 2.3.1 to 7.16.3.
Sourced from ipython's releases.
7.9.0
No release notes provided.
7.8.0
No release notes provided.
7.7.0
No release notes provided.
7.6.1
No release notes provided.
7.6.0
No release notes provided.
7.5.0
No release notes provided.
7.4.0
No release notes provided.
7.3.0
No release notes provided.
7.2.0
No release notes provided.
7.1.1
No release notes provided.
7.1.0
No release notes provided.
7.0.1
No release notes provided.
7.0.0
No release notes provided.
7.0.0-doc
No release notes provided.
7.0.0rc1
No release notes provided.
7.0.0b1
No release notes provided.
6.2.1
No release notes provided.
... (truncated)
d43c7c7
release 7.16.35fa1e40
Merge pull request from GHSA-pq7m-3gw7-gq5x8df8971
back to dev9f477b7
release 7.16.2138f266
bring back release helper from master branch5aa3634
Merge pull request #13341 from meeseeksmachine/auto-backport-of-pr-13335-on-7...bcae8e0
Backport PR #13335: What's new 7.16.28fcdcd3
Pin Jedi to <0.17.2.2486838
release 7.16.120bdc6f
fix conda buildDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Hi I am getting this error while trying to run txes2
Traceback (most recent call last):
File "consumer.py", line 14, in <module>
from txes2 import ElasticSearch
File "/usr/local/lib/python3.6/site-packages/txes2/__init__.py", line 1, in <module>
from txes2.elasticsearch import ElasticSearch # noqa
File "/usr/local/lib/python3.6/site-packages/txes2/elasticsearch.py", line 5, in <module>
from . import connection, exceptions
File "/usr/local/lib/python3.6/site-packages/txes2/connection.py", line 1, in <module>
from . import connection_http
File "/usr/local/lib/python3.6/site-packages/txes2/connection_http.py", line 6, in <module>
from . import exceptions, utils
File "/usr/local/lib/python3.6/site-packages/txes2/utils.py", line 4, in <module>
from urllib import quote
ImportError: cannot import name 'quote'
It seems that this is due to the fact that txes2 is not python3 compatible. Is there any plain to port this to python3?
Currently, when passing bulk=True
to index, we flush the bulk (ie send to ES) when we reach a certain count. Think it would be nice if we could do it on a schedule too eg: flush when the count reaches 1000 docs or 3 seconds elapses.
Interested to hear what other think, if anyone is actually reviewing these.
As per the official python lib: https://github.com/elastic/elasticsearch-py/blob/140ebd022f2262262601fad0782dae91275b2875/elasticsearch/client/init.py#L184
It'd be great to check the status of the connection rather than silently passing and failing when running some other query later.
Cheers!