# Different versions retuned with SearchResponse and GetResponse

**URL:** <https://discuss.elastic.co/t/different-versions-retuned-with-searchresponse-and-getresponse/18643>\
**Category:** Elasticsearch\
**Created:** [July 14, 2014, 9:05am UTC](https://discuss.elastic.co/t/different-versions-retuned-with-searchresponse-and-getresponse/18643 "2014-07-14T09:05:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Webber](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@Peter\_Webber](https://discuss.elastic.co/u/Peter_Webber)\
**Post date:** [July 14, 2014, 9:05am UTC](https://discuss.elastic.co/t/different-versions-retuned-with-searchresponse-and-getresponse/18643/1 "2014-07-14T09:05:06Z")

</div>

Hello,

I am retrieving a document once via the Search API and once via the Get API  
(using Java).

In once case if I apply getVersion() on the SearchResponse I get 2.  
If I apply getVersion() on the GetResponse I get 16.

In many other cases the responses are widely different too. Generally the  
version I get from the GetResponse seems to be 5 to 10 times than what I  
get from SearchResponse. What I get from SearchResponse seems to be correct.

Does someone know what's up here?

Regards  
Peter

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3ea36ff0-c156-4627-9e8f-136c899b6525%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3ea36ff0-c156-4627-9e8f-136c899b6525%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:16am UTC](https://discuss.elastic.co/t/different-versions-retuned-with-searchresponse-and-getresponse/18643/2 "2017-07-06T01:16:08Z")

</div>

Closed on July 6, 2017, 1:16am UTC


