Commit Graph

44 Commits

Author SHA1 Message Date
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
Jérôme Renard
f7b8fcf842 Added IndexStatus() 2013-06-23 08:59:23 +02:00
Jérôme Renard
726e1e80b9 Added indexList and extraArgs support to Connection.Stats() 2013-06-18 08:04:52 +02:00
Jérôme Renard
92081c6d25 Renamed FetchStats() into Stats() 2013-06-18 06:54:31 +02:00
Jérôme Renard
57ab71837a Fixed missing package description 2013-06-16 06:56:38 +02:00
Jérôme Renard
5db99a7858 Initial import 2013-06-15 08:18:48 +02:00