Commit Graph

128 Commits

Author SHA1 Message Date
Paul Bonser
c4704e7261 Missing dollar sign 2015-06-23 17:57:44 -05:00
Paul Bonser
538861b257 Update ES and Go versions in the matrix 2015-06-23 17:54:45 -05:00
Paul Bonser
fd0653ffa9 Update tests to handle *Response rather than Response 2015-06-23 15:05:28 -05: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
7a434d562f Call _refresh to ensure index is refreshed before getting the status 2015-06-23 14:21:03 -05:00
Paul Bonser
58075eeb35 Use interface{} so any JSON-encodable value can be passed in 2015-06-23 13:54:25 -05:00
Jérôme Renard
86be27b627 Merge pull request #23 from marinbek/master
Added aliasing support, updated gocheck
2015-03-02 09:29:50 +01:00
Marin Bek
906234e920 install gocheck on travis 2015-03-02 08:59:23 +01:00
Marin Bek
5e4a4d663a AliasExists implementation 2015-02-27 16:46:08 +01:00
Marin Bek
aedb5f6b85 Delete index before test, just in case 2015-02-27 15:48:17 +01:00
Marin Bek
f6ba59e55a RemoveAlias implementation, reusing code 2015-02-27 15:48:00 +01:00
Marin Bek
13bf94fc2e New gocheck location 2015-02-27 15:33:06 +01:00
Marin Bek
121db02e3d AddAlias implementation 2015-02-27 15:32:56 +01:00
Jérôme Renard
475a722fea Merge pull request #22 from sasbury/master
Added support for Count requests
2015-01-28 07:48:15 +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
Jérôme Renard
264c997862 Merge pull request #20 from r--w/master
Optimize API
2014-11-21 11:43:56 +01: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
Jérôme Renard
63cef24bc9 Merge pull request #19 from marinbek/master
Support for PutMapping, Update and IndicesExist APIs
2014-11-17 22:42:46 +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
1453d3c31c Give ES some time to work in tests 2014-11-15 23:08:40 +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
36f0db102e Update test 2014-11-12 17:35:37 +01:00
Marin Bek
76ad99bb81 Update API implementation 2014-11-12 17:34:58 +01:00
Marin Bek
8c049cb79c ignore vim files 2014-11-11 15:39: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
92d2eb17fa Test IndicesExist 2014-11-11 15:37:50 +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
Jérôme Renard
17253e07b0 Merge pull request #18 from r--w/master
Handling errors in bulk indexing.
2014-10-14 07:44:34 +02:00
r--w
0936751f04 bulk indexing update 2014-10-13 09:43:58 +02: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
Jérôme Renard
7a0373c858 Merge pull request #17 from wux/master
Fix test: replace _all index with the right index name used in test.
2014-09-28 07:56:56 +02:00
James Wu
697ad42b43 Fix test: replace _all index with the right index name used in test. 2014-09-26 11:55:47 -07:00
Jérôme Renard
6fad26987a Merge pull request #15 from sasbury/master
Support for running a _query with an http method
2014-09-14 20:05:28 +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
Jérôme Renard
7e772ee99b Merge pull request #14 from acasas/fields_struct
Support for passing a struct to a document instead of map[string]interface{}
2014-08-18 08:28:09 +02:00
Amadeo Casas
65753ab5ed gofmt pass 2014-08-17 13:26:17 -07:00
Amadeo Casas
9a6ac4f5c5 Addition of getConnection() method and ES_HOST/ES_PORT env vars in example_test.go 2014-08-17 13:26:08 -07:00
Amadeo Casas
9b27ec1889 Test to verify fields in a document can be extracted from a struct 2014-08-17 13:25:25 -07:00
Amadeo Casas
bfa1530af9 Support for structs in document fields 2014-08-17 13:24:21 -07:00
Jérôme Renard
15921ffa9c Merge pull request #12 from bobrik/bulk-witout-index
Bulk witout index
2014-07-03 20:40:53 +02: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
Jérôme Renard
cdd62356b9 Merge pull request #11 from bobrik/travis
Added travis-ci file
2014-07-02 13:48:52 +02:00