Commit Graph

129 Commits

Author SHA1 Message Date
Paul Bonser
f5716dce83 Some 5.x query changes 2017-02-02 11:01:27 -06:00
Paul Bonser
a1af556756 Zero out some fields which may vary between ES versions 2017-02-01 16:59:43 -06:00
Paul Bonser
b684e69451 Use slices a bit more nicely 2017-02-01 16:59:14 -06:00
Paul Bonser
c2f6a74d74 Merge pull request #6 from OwnLocal/split_core
Split core, update testing
2017-02-01 15:23:08 -06:00
Paul Bonser
5d13647d3c Handle non-string errors for ES 2+ support 2016-10-13 19:37:40 -05:00
Paul Bonser
2715203d96 Leave off extra leading slash in bulk requests 2016-10-13 02:54:52 -05:00
Paul Bonser
e89f41828e Remove commented out code 2016-09-27 17:48:14 -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
10e4302b6c Use relative path to build ginkgo 2016-09-27 15:08:50 -05:00
Paul Bonser
5acff13ac5 Just build ginkgo into vendor/bin and use that 2016-09-27 14:46:09 -05:00
Paul Bonser
2bd116556b Just use go get in the travis config to ensure ginkgo is installed 2016-09-27 14:42:46 -05:00
Paul Bonser
c83171bffe ensure go vendoring is enabled before running go install 2016-09-27 14:39:58 -05:00
Paul Bonser
45269de7cc Make sure ginkgo gets installed 2016-09-27 14:34:50 -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
c79b7c2b36 Add ginkgo for testing 2016-09-27 14:29:47 -05:00
Paul Bonser
9f7a8396bb Update code to match Go style guide 2016-09-27 14:19:07 -05:00
Paul Bonser
3d78bba218 Add go 1.7, drop older versions of ES 2016-09-27 14:03:39 -05:00
Paul Bonser
a018ac0716 Rename Connection to Client 2016-09-27 13:56:13 -05:00
Paul Bonser
167d78773c Merge pull request #4 from OwnLocal/use_glide
Use glide for dependency management
2016-07-26 20:20:48 -05:00
Paul Bonser
5fd6aac546 Add glide config and set up tests to use glide 2016-07-26 18:29:20 -05:00
Paul Bonser
214c987e11 Update README with warning on breaking changes 2016-07-26 14:31:51 -05:00
Paul Bonser
6c9647b81c Point the test import to the proper repo 2016-07-26 14:28:54 -05:00
Jérôme Renard
23413ed12a Merge pull request #41 from pib/1_5_fix
Fix tests for Go 1.5
2015-12-05 07:15:30 +01:00
Paul Bonser
f75a906714 Wild-card for the first portion of the error expected 2015-12-04 13:27:48 -06:00
Paul Bonser
148326d59c less picky about dial error, just expect that it says no such host 2015-12-04 13:23:36 -06:00
Jérôme Renard
8fd7c39685 Merge pull request #38 from johnkjellberg/highlight2
Add "Highlight" field to "Hit" structure.
2015-10-31 14:03:55 +01:00
John Kjellberg
0963f937ac Add "Highlight" field to "Hit" structure. 2015-10-26 11:07:31 +01:00
Jérôme Renard
5d24537714 Merge pull request #37 from r--w/master
Code formatting
2015-10-12 10:48:18 +02:00
r--w
d2e159d767 Code formatting 2015-10-12 09:27:58 +02:00
Jérôme Renard
b44bb059a1 Merge pull request #36 from r--w/master
Update index settings API
2015-10-11 08:07:22 +02:00
Jérôme Renard
eaebb27e1a Fixed missing golang versions and removed tip 2015-10-11 07:51:31 +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
Jérôme Renard
add48c54e3 Merge pull request #32 from pib/test_es_1.7
ElasticSearch 1.7.0 is out, test with that, too
2015-07-21 07:25:16 +02:00
Jérôme Renard
7414268f99 Merge pull request #31 from pib/split_run
Split Run into two parts.
2015-07-21 07:24:57 +02:00
Paul Bonser
87536011d0 ElasticSearch 1.7.0 is out, test with that, too 2015-07-20 17:12:47 -05:00
Jérôme Renard
d40cba666e Merge pull request #29 from pib/pointer_response
Return *Response instead of Response so response data is not copied on return
2015-07-17 06:29:23 +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
Jérôme Renard
c35de39565 Merge pull request #27 from pib/allow_any_jsonable
Use interface{} so any JSON-encodable value can be passed in
2015-07-04 22:03:47 +02:00
Jérôme Renard
5edfd2e653 Merge pull request #26 from pib/test_index_status_refresh
Call _refresh to ensure index is refreshed before getting the status
2015-07-04 15:41:41 +02:00
Paul Bonser
2f906c980e Different groovy plugin versions depending on ES version 2015-06-24 18:44:13 -05:00
Paul Bonser
00b9bbc858 Use correct comparison brackets 2015-06-24 16:27:37 -05:00
Paul Bonser
f41e425728 Make sure groovy is installed for older ES versions 2015-06-24 14:23:04 -05:00
Paul Bonser
06c82c2420 Select scripting lang as groovy for older ES versions 2015-06-24 13:56:01 -05:00
Paul Bonser
953759da48 Handle variance in refresh count between ES versions 2015-06-24 10:32:01 -05:00
Paul Bonser
51df70436b Wrap command in quotes so it is treated as a single command 2015-06-24 09:21:06 -05:00