7
0
Commit graph

55 Commits

Autor SHA1 Nachricht Datum
liangzy
fbfb1d80a8 v1.0.0 修复其于 http basic auth 的bug 2020-04-28 14:47:58 +08:00
Paul Bonser
4b222647b4 Add ability to do a request and just get the raw response bytes back 2017-02-03 14:06:31 -06:00
Paul Bonser
a6663ce61d _optimize was renamed to _forcemerge in ES 2.1.0 2017-02-02 19:08:33 -06:00
Paul Bonser
7ee055cb7d Delete mapping is no longer supported in 2.x+ versions of ES 2017-02-02 18:28:09 -06:00
Paul Bonser
22f0f3b3be Add Client.DeleteByQuery rather than requiring users to pass 'DELETE' to Query 2017-02-02 18:04:24 -06:00
Paul Bonser
6492f3a5e3 Make Client.Scan work with ES 5.x 2017-02-02 13:04:45 -06:00
Paul Bonser
f9192a7ca8 Build in a way to detect the ES version so it can be used for version-specific things 2017-02-02 11:54:24 -06:00
Paul Bonser
b684e69451 Use slices a bit more nicely 2017-02-01 16:59:14 -06:00
Paul Bonser
5d13647d3c Handle non-string errors for ES 2+ support 2016-10-13 19:37:40 -05:00
Paul Bonser
db565276fc Provide a way of making external request builders, separate generationg of requests from sending of requests 2016-09-27 16:41:27 -05:00
Paul Bonser
3f0875ed66 make all request fields exported so custom requests can be done 2016-09-27 14:30:17 -05:00
Paul Bonser
9f7a8396bb Update code to match Go style guide 2016-09-27 14:19:07 -05:00
Paul Bonser
a018ac0716 Rename Connection to Client 2016-09-27 13:56:13 -05:00
r--w
d2e159d767 Code formatting 2015-10-12 09:27:58 +02:00
r--w
ae25be9f6f Fixing IndicesExist function 2015-10-02 14:27:17 +02:00
r--w
aa49572462 Fixing IndicesExist function 2015-10-02 14:20:57 +02:00
r--w
8fa9ff1c53 Update index settings API 2015-10-02 13:59:55 +02:00
r--w
bf0b8b5bc8 Update index settings API - https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html#indices-update-settings 2015-10-02 13:25:29 +02:00
Paul Bonser
f760e32967 Split Run into two parts.
This will make writing request methods which return different response types simpler.
2015-07-14 11:29:04 -05:00
Paul Bonser
3f6bbaec1f Merge branch 'master' of https://github.com/belogik/goes into pointer_response 2015-07-14 10:02:38 -05:00
Jérôme Renard
673f67dbdb Merge pull request #28 from pib/fix_content_type
Set content-type to application/json, since that's what is being passed to ElasticSearch
2015-07-04 22:04:52 +02:00
Paul Bonser
e46905c0b4 Return *Response instead of Response so response data is not copied on return 2015-06-23 14:55:30 -05:00
Paul Bonser
2372cfaf30 Set content-type to application/json, since that's what is being passed to ElasticSearch 2015-06-23 14:45:45 -05:00
Paul Bonser
58075eeb35 Use interface{} so any JSON-encodable value can be passed in 2015-06-23 13:54:25 -05:00
Marin Bek
5e4a4d663a AliasExists implementation 2015-02-27 16:46:08 +01:00
Marin Bek
f6ba59e55a RemoveAlias implementation, reusing code 2015-02-27 15:48:00 +01:00
Marin Bek
121db02e3d AddAlias implementation 2015-02-27 15:32:56 +01:00
Stephen Asbury
21ab94d0ca count: support for count requests
Added count method to connection
Added Count field to response
Added test for count method
2015-01-26 17:43:50 -08:00
Jérôme Renard
cc93e7ac2c Merge pull request #21 from marinbek/master
DeleteMapping implementation
2014-11-25 20:33:34 +01:00
Marin Bek
1d1ad4d447 DeleteMapping implementation 2014-11-24 16:41:35 -08:00
r--w
6b8090a19d Optimize API
Optimize API added:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/in
dices-optimize.html#indices-optimize
2014-11-21 11:06:24 +01:00
Marin Bek
6c041327be Only set Id on document if it was given 2014-11-17 17:04:48 +01:00
Marin Bek
4c9459a02b Use slices instead of variadic function 2014-11-17 07:25:48 +01:00
Marin Bek
08d26b69e0 GetMapping implementation 2014-11-13 09:22:11 +01:00
Marin Bek
589282a189 Unmarshal whole response into Raw field on Response for APIs that return fully dynamic format, like _mapping 2014-11-13 09:21:27 +01:00
Marin Bek
76ad99bb81 Update API implementation 2014-11-12 17:34:58 +01:00
Marin Bek
fd03304d0b go fmt 2014-11-11 15:39:36 +01:00
Marin Bek
ebf3324c90 IndicesExist implementation 2014-11-11 15:39:07 +01:00
Marin Bek
e5d37bf945 HEAD requests have no body, only HTTP response code, so we need to act accordingly 2014-11-11 15:37:07 +01:00
Marin Bek
f8e5a2a433 Support for PutMapping API 2014-11-11 14:37:34 +01:00
r--w
c4d6ac023a Handling errors in bulk indexing. There is a filed named erros which indicates whether commit was succesful see: http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/bulk.html 2014-10-13 09:11:12 +02:00
Stephen Asbury
5a12eb4b68 Support for running a _query with an http method
This allows operations like delete by query.
Included test for delete by query.
2014-09-11 13:49:57 -07:00
Amadeo Casas
bfa1530af9 Support for structs in document fields 2014-08-17 13:24:21 -07:00
Ian Babrou
20300ffa70 go fmt 2014-07-03 16:28:55 +04:00
Ian Babrou
45e977fe8a removed index param from BulkSend 2014-07-03 16:28:37 +04:00
mihasya
2b3ac6fe41 Added HTTP client override support 2014-05-30 16:50:35 +00:00
r--w
d48efef610 Added extrargs for searching
Extra args to allow routing parameter
2014-05-07 14:49:13 +02:00
Ian Babrou
c7c95eccdc aggregations support 2014-02-27 16:33:51 +04:00
Ian Babrou
5356d04035 Added initial scroll support 2014-01-11 21:07:48 +04:00
Jérôme Renard
4f4a9961b2 Limited mmove calls 2013-11-29 11:28:37 +01:00