elastic icon indicating copy to clipboard operation
elastic copied to clipboard

IndexResponse Version prop is int - shouldn't it int64?

Open vsiv opened this issue 9 years ago • 2 comments

Hi olivere!

Which version of Elastic are you using?

[ ] elastic.v2 (for Elasticsearch 1.x) [ ] elastic.v3 (for Elasticsearch 2.x) [X] elastic.v5 (for Elasticsearch 5.x) [ ] elastic.v6 (for Elasticsearch 6.x)

Please describe the expected behavior

Please describe the actual behavior

IndexResponse Version prop is int - shouldn't it int64?

type IndexResponse struct { // TODO _shards { total, failed, successful } Index string json:"_index" Type string json:"_type" Id string json:"_id" Version int json:"_version" Created bool json:"created" }

Any steps to reproduce the behavior?

Thanks! V

vsiv avatar Dec 03 '17 11:12 vsiv

Thanks for reporting. I will have to look this up in the Elasticsearch code, and if it's a long there, I'll have to see if this breaking change is worth the change. I can still change it in v6, as I've not tagged 6.0.0 yet (will probably do so over the weekend).

olivere avatar Dec 12 '17 16:12 olivere

I changed this to int64 in v5 and v6 lately.

olivere avatar Dec 27 '17 13:12 olivere