# How to include \_version in scroll / scan results?

**URL:** https://discuss.elastic.co/t/how-to-include--version-in-scroll-scan-results/39596
**Category:** Elasticsearch
**Created:** [January 19, 2016, 8:33pm UTC](https://discuss.elastic.co/t/how-to-include--version-in-scroll-scan-results/39596 "2016-01-19T20:33:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![spazm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spazm/32/7256_2.png) [@spazm](https://discuss.elastic.co/u/spazm)
#### Post date: [January 19, 2016, 8:33pm UTC](https://discuss.elastic.co/t/how-to-include--version-in-scroll-scan-results/39596/1 "2016-01-19T20:33:35Z")

</div>

Hello ES folks!

I'd like to see `_version` included in the results for my scan / `scroll` search query. I don't see it included in the default results when I query for full records, nor if I request it in the `_source` array. I do see the `_version` when I retrieve an individual row.

Is `_version` available via the sroll interface? Am I doing something wrong in this query?

I originally wrote my code against a 1.x version of ES. I am using elasticsearch 2.1 in production.

Here are direct curl versions similar to our requests.

## query versions

1. search\_type=scan

2. scroll

## results

1. scan\_scroll\_test.json

2. scroll\_test.json

3. raw document

---

<div class="post-metadata">

### Author: ![spazm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spazm/32/7256_2.png) [@spazm](https://discuss.elastic.co/u/spazm)
#### Post date: [January 19, 2016, 9:03pm UTC](https://discuss.elastic.co/t/how-to-include--version-in-scroll-scan-results/39596/2 "2016-01-19T21:03:18Z")

</div>

Wow, is it really just that I was missing `"version": true` in my request?

[ref: [http://stackoverflow.com/a/24731855/117714](http://stackoverflow.com/a/24731855/117714) ]

---

<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 5, 2017, 11:23pm UTC](https://discuss.elastic.co/t/how-to-include--version-in-scroll-scan-results/39596/3 "2017-07-05T23:23:17Z")

</div>


