Honza Král
6d3a4e238d
Adding description of force and full options to indices.flush
2014-01-06 18:20:30 +01:00
Honza Král
aaeab13f8b
Handle regexp-based catch statements in the yaml test suite
2014-01-03 18:05:25 +01:00
Honza Král
2ced9697be
Use new yaml tests
2014-01-02 20:07:44 +01:00
Honza Král
a49371b553
Reflect new ES api for get aliases.
...
see https://github.com/elasticsearch/elasticsearch/issues/4539 for more
details
2014-01-02 20:00:59 +01:00
Honza Král
fb14082f89
Adding new parameters to indices APIs
...
See https://github.com/elasticsearch/elasticsearch/issues/4436 for more details
2014-01-02 19:51:08 +01:00
Honza Král
f7d7931a2d
Rest-api-spec repo has been merged with elasticsearch proper
...
Changing the git submodule and moving it top level to avoid traversing
the es source code during test discovery
2013-12-28 17:40:00 +01:00
Honza Král
d1e031ac03
Version bump to 0.4.4
2013-12-23 16:35:34 +01:00
Honza Král
0f440508ce
Added configuration for the wheel package format
2013-12-23 16:30:09 +01:00
Honza Král
9b60521b34
Tweaking the changelog a bit to prepare for release
2013-12-23 16:27:27 +01:00
Honza Král
06efe2c15b
Update to latest tests
2013-12-23 16:03:04 +01:00
Honza Král
05c4eefbf3
Enable deserialization of different content types coming from the server.
2013-12-14 18:15:15 +01:00
Honza Král
d1ccc2430d
Mark 0.4.4 as development at leats in Changelog
2013-12-13 19:38:59 +01:00
Honza Král
e2ab7ea80d
Adding a third return value from connection.perform_request - headers
...
This will be used to implement deserializing based on mimetype
2013-12-13 19:36:21 +01:00
Honza Král
be9acfad90
Make sure we handle quotes correctly in the trace logger
2013-12-11 14:41:42 +01:00
Honza Král
1345b36948
Make sure actions aren't modified when passed into bulk
2013-12-11 14:30:59 +01:00
Honza Král
79c59d6f80
Use fully qualified names for the generated tests
2013-12-09 22:24:54 +01:00
Honza Král
a19595e803
Report the name of the generated test case when running the tests with -v
2013-12-09 22:17:36 +01:00
Honza Král
99eb8936a3
Another example query, this time with an actual query
2013-12-09 17:48:54 +01:00
Honza Král
3e262779bb
Example code using the client
2013-12-09 03:17:32 +01:00
Honza Král
6947b01275
Removed extra reference to the id parameter for create API
2013-12-09 02:53:07 +01:00
Honza Král
0ab904c4de
Use dict.popitem when we know the dict only has one key
2013-12-08 19:27:44 +01:00
Honza Král
e9eaefd999
Add a note to changelog about the unicode fix
2013-12-04 15:10:31 +01:00
Honza Král
95fba05e02
Fix unicode body handling.
...
Only body should be encoded as bytes, not anything going through the
serializer (mostly because of bulk)
2013-12-04 15:07:56 +01:00
Honza Král
4420296636
For string body make sure we serialize unicode properly
2013-12-04 13:22:33 +01:00
Honza Král
19f9eaab95
Make sure bulk requests are logged correctly
2013-12-03 02:04:11 +01:00
Honza Král
c5c98dcaac
Add logging of body as INFO on connection error
2013-12-03 01:55:32 +01:00
Honza Král
cf03f9831a
Ass send_get_body_as parameter for situations where GET cannot have a body
2013-12-02 22:57:47 +01:00
Honza Král
69b8023c15
Doc fix: bulk_index -> bulk rename
2013-12-02 17:17:06 +01:00
Honza Král
6f6c864bc8
Bulk supports timeout parameter in new ES
2013-11-25 11:57:21 +01:00
Honza Král
10ae841db3
Add a not on the optional test client override to CONTRIBUTING.md
2013-11-23 19:34:54 +01:00
Honza Král
911817d514
Have git ignore local overrides in tests
2013-11-23 19:22:38 +01:00
Honza Král
82fa7b03a4
Enable users to override the client used in tests.
...
Fixes #7 , thanks nkvoll!
2013-11-23 19:20:44 +01:00
Honza Král
5ce42094c6
Skip test for different op types before 0.90.1
2013-11-22 22:28:29 +01:00
Honza Král
5f8c5322b0
Have bulk tests work for 0.90.0 too
2013-11-22 16:05:51 +01:00
Honza Král
8e8981d9c9
New bulk docs updated
2013-11-22 14:38:38 +01:00
Honza Král
3ae44db90c
Bulk helpers overhaul
...
streaming_bulk for iterative consumption of the input
bulk_index -> bulk
callback expand_action to transform input into action/data pairs
support for non-index actions through _op_type key
2013-11-22 14:29:08 +01:00
Honza Král
a4e068c505
Fix the helpers tests.
...
ES doesn't guarantee that refresh will wait for cluster state
propagation and thus the type might not exist right after the index
being created during the bulk load. Just check the documents instead.
2013-11-19 22:33:53 +01:00
Honza Král
1c279d5aad
By default allow 10 connections to be held to the server
2013-11-19 22:31:25 +01:00
Honza Král
eed4698c2c
Merge branch 'urllib3_pool_maxsize' of github.com:rboulton/elasticsearch-py
2013-11-19 22:29:08 +01:00
Honza Král
5557fbff1e
Make sure jenkins output contains logs
2013-11-19 04:10:34 +01:00
Honza Král
4bce8a464c
Added more detailed error handling
...
namely being able to detect conflicts and bad requests
2013-11-14 01:12:55 +01:00
Honza Král
62738c85c4
Remove specific version from pip example in README
2013-11-13 02:58:42 +01:00
Honza Král
e04b875ca7
Changer is 1.0 Beta2
2013-11-07 17:18:19 +02:00
Honza Král
a8094486e0
Merge branch 'master' of github.com:obmarg/elasticsearch-py
2013-11-06 13:36:35 +02:00
Honza Král
98854b31e7
Strip excess '/' at the end of doc urls
2013-11-04 00:14:19 +01:00
Honza Král
68b19ebe55
Fixed test after log format change
2013-11-03 22:44:16 +01:00
Honza Král
b8b9f67092
Logging fixes
2013-11-03 22:39:03 +01:00
Honza Král
9e68ea91ed
If we have sniffed no hosts, consider our sniff failed
2013-11-03 22:38:30 +01:00
Honza Král
04afc03cdd
Thrift plugin uses different format in cluster stats
2013-10-29 17:45:49 +01:00
Honza Král
6454372da6
Allow people to import ThriftConnection from elasticsearch package itself
2013-10-29 15:30:58 +01:00
Honza Král
568ed079d1
Some additional documentation
2013-10-23 16:55:00 +02:00
Honza Král
1e99f51a30
Bump version to 0.4.3
2013-10-22 21:50:34 +02:00
Honza Král
ce5b5a439a
Added Changelog
2013-10-22 21:49:39 +02:00
Honza Král
2bd421f29d
Add in __repr__ to client to simplify debugging
2013-10-22 01:23:12 +02:00
Honza Král
78d5a0b5a8
Be more benevolent when dealing with hosts parameter
...
This was mostly inspired by work on haystack for backwards compatibility
2013-10-22 01:22:47 +02:00
Honza Král
73f170f23f
Decimal support
...
Currently only converting to floats which may lose some precision.
Not recommended in 2.6 where float to string serialization is sub-optimal
2013-10-22 00:26:58 +02:00
Honza Kral
2bb16fe7ed
Make offset in search work. from is a reserved word in python so use from_
...
Fixes #13
Thanks llonchj, danfairs, vanatteveldt and RonRothman!
2013-10-17 22:01:25 +02:00
Honza Kral
798778ee0a
Cosmetic code changes to bulk_index
2013-10-14 23:58:17 +02:00
Honza Kral
174c431afb
Add raise_on_error parameter to bulk_index to enable short-circuiting bulk loading
2013-10-14 23:50:42 +02:00
Honza Kral
bf40da3cce
ReST fix
2013-10-14 23:39:30 +02:00
Honza Kral
e3ef25d5e4
Added a lint to full docs
2013-10-14 23:37:30 +02:00
Honza Kral
d5285b09da
Adding a reference tothe bulk_index helper from the bulk API
2013-10-14 23:33:16 +02:00
Honza Kral
4e56b4fbc1
Only collect info on failed docs when using the bulk_index helper
2013-10-14 23:33:16 +02:00
Honza Kral
64dd28fd8f
Failed indexes in bulk_index do not contain theok flag
2013-10-14 23:33:16 +02:00
Honza Kral
e6e1fd060e
Make requests an optional dependency
2013-10-14 23:33:16 +02:00
Honza Kral
5b36475197
Updated the yaml test suite
2013-10-10 14:48:54 +02:00
Honza Kral
08a38844be
Json does recognize ints
2013-10-10 13:56:56 +02:00
Honza Kral
61509723e6
Helper documentation tweaks
2013-10-10 13:20:42 +02:00
Honza Kral
8568388f29
cluster.health has a status key that should not be treated as http status
2013-10-10 13:20:00 +02:00
Honza Kral
c9f21c3c4f
Update the docstring for get_source to match reality
2013-10-09 10:12:35 +02:00
Honza Kral
553e42c29e
New version to upload
2013-10-08 15:21:43 +02:00
Honza Kral
68e1829041
Inlude ID when bulk indexing documents through bulk_index helper
2013-10-06 17:54:36 +02:00
Honza Kral
44ed34771e
Better tests for the bulk_index helper
2013-10-06 17:54:07 +02:00
Honza Kral
cc524e9c9d
Python 3 fix fo tests
2013-10-06 17:43:45 +02:00
Honza Kral
a2b89e0b84
Moved RequestsHttpConnection to it's own module
2013-10-04 15:47:56 +02:00
Honza Kral
45403c9f2d
Moved Urllib3HttpConnection to it's own module
2013-10-04 15:46:41 +02:00
Honza Kral
92c7dde5e0
Removing redundant code
2013-10-02 01:04:50 +02:00
Honza Kral
1a9fd9e105
Remove duplicate test
2013-10-02 01:01:05 +02:00
Honza Kral
b3c1170092
only require thrift if we are going to use it
...
This commit is mostly for travis since thrift has trouble downloading
at times.
2013-10-02 00:56:23 +02:00
Honza Kral
a24337ca6b
Updated rest api specs
2013-10-02 00:54:39 +02:00
Honza Kral
9baa8fb309
Tiny cleanup
2013-10-02 00:54:05 +02:00
Honza Kral
5fccd1e793
Allow lists for http_auth in RequestsHttpConnection
...
thanks nkvoll!
2013-10-02 00:42:38 +02:00
Honza Kral
b0587071b6
Circumvent prepared requests from RequestsHttpConnection
...
this is because sesion.send(prepared_request) doesn't pass through auth
info. Thanks nkvoll!
Fixes #8
2013-10-02 00:39:19 +02:00
Honza Kral
4f890ff89c
preserve ',' and '*' in url for nicer URLs in logs
2013-09-30 19:20:50 +02:00
Honza Kral
a238144bc6
Lists can only contain strings in es api, also broke py3
...
This reverts commit 7eb4949641 .
2013-09-30 19:15:03 +02:00
Honza Kral
17c4a3dd21
stats_only parameter to bulk_index helper for large loads`
2013-09-30 19:05:12 +02:00
Honza Kral
8f15b4edc0
Helpers documentation
2013-09-30 19:05:00 +02:00
Honza Kral
e04a1d3c02
Double explain
2013-09-30 17:39:49 +02:00
Honza Kral
7eb4949641
Make sure we encode even values in lists
2013-09-30 17:38:37 +02:00
Honza Kral
8da490e672
Even when using existing server wait for yellow status before proceeding
...
This should solve travis issues where ES is run just before the test
suite.
2013-09-28 15:51:24 +02:00
Honza Kral
7243ae6413
Typo in ElasticsearchException
...
This change is internal so it shouldn't affect existing code
2013-09-28 15:51:24 +02:00
Honza Kral
5774ccc4b0
Added CONTRIBUTING.md to MANIFEST.in
2013-09-27 13:38:51 +02:00
Honza Kral
638713daab
Added a simple contributing document.
2013-09-26 11:34:15 +02:00
Honza Kral
d179ae6253
Download our own ES in travis so that we can install plugins and run thrift tests
2013-09-25 23:51:25 +02:00
Honza Kral
49a23db148
New spec repo version
2013-09-25 23:10:30 +02:00
Honza Kral
672fdf7d5f
Make ignore a global parameter
2013-09-25 23:09:50 +02:00
Honza Kral
5c76e7c96c
Run yaml test suite correctly - one test per test method
2013-09-25 23:07:52 +02:00
Honza Kral
33b05bdc62
Thrift SSL support
2013-09-25 21:31:10 +02:00
Honza Kral
490fd237ee
rename use_https to use_ssl to make it forwards copatible with thrift
2013-09-25 21:07:29 +02:00
Honza Kral
ab8e60de58
use ascii
2013-09-25 21:06:49 +02:00