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
Nick Lang
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 Lang
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 Lang
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 Yumiyama
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
b049b684bb
add timeout param to Tasks API ( closes #852 ) ( #853 )
2018-10-12 09:39:22 -06:00
Itay
de8413fdbd
typo fix in helpers ( #854 )
2018-10-11 03:05:11 -06:00
Steven Loria
47eab8cc0f
Minor typo fixes on index page ( #850 )
2018-10-08 11:15:40 -06:00
Aly Sivji
cb6f09bbe7
Fix bulk insert docs ( #832 )
2018-08-06 13:28:56 -06:00
Chris Wynne
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 Vasilishin
3f2b1b925a
Add support for allow_partial_search_results search request parameter ( #821 )
2018-07-16 11:59:51 -06:00
Dmitri Vasilishin
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
d3204f6b71
add a small example, and reference bigger example. Closes #813 ( #817 )
2018-07-10 11:12:46 -06:00
Udit107710
82849a4a27
Update load.py ( #795 )
2018-06-26 11:09:17 -06:00
Nick Lang
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 Vasilishin
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
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
4352e56174
fixing max urllib3, updating authors
2018-06-19 12:55:48 -06:00
Nick Lang
7751fede5a
add wait on delay ( #794 )
2018-05-18 14:30:31 -06:00
Nick Lang
206e0d609c
handle gzip for python27. Fixes #789 ( #793 )
2018-05-18 13:52:37 -06:00
Honza Král
15a4d7e2cc
Removing my email from .travis.yml
2018-05-16 12:40:49 -04:00
Nick Lang
9fe0763670
Merge branch 'master' of github.com:elastic/elasticsearch-py
2018-05-08 00:25:21 -06:00
Nick Lang
0252c2c652
Increase minimum requests version closes #784
2018-05-08 00:20:46 -06:00
Ilya Radinsky
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
f77263e3bd
adding support for wait_for_no_initializing_shards in health method ( #777 )
2018-04-24 13:13:41 -06:00
Milly
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
hari
0aac8c9dff
Update index.rst ( #771 )
2018-04-24 11:33:29 -06:00
Hendrik Muhs
c505e53f6a
add forecast API to X-Pack, ML client ( #772 )
2018-04-20 14:13:06 -06:00
Nick Lang
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
Daniel Chimeno
5ecc1bd209
Update connection.rst ( #768 )
...
Changed parameter name
2018-04-12 12:20:03 -06:00
wangxiaolei
408093440c
Support terminate_after for count api. ( #754 )
2018-04-09 10:30:09 -06:00
Nick Lang
c4a0a54006
Adding X-Pack api docs, closes #760
2018-04-02 11:44:47 -06:00
Sumit Kumar
52c387abf7
correct field name for routing ( #758 )
...
`_routing` is correct field name for `routing` in every bulk item action
2018-03-30 13:41:53 -06:00
Nick Lang
a9232fced7
adding extra for requests closes #753
2018-03-30 10:40:28 -06:00
Nick Lang
d46bbdf124
Bump to 6.2.0
2018-03-20 13:41:15 -05:00
Nick Lang
4fda104d6e
Adding X-Pack clients to -py repo ( #748 )
2018-03-20 12:36:13 -06:00
Jai Sharma
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
Nick Lang
7ca0b86dae
update change log
2018-03-13 10:36:56 -06:00