# \_search API - why doesn't it return version by default?

**URL:** https://discuss.elastic.co/t/search-api-why-doesnt-it-return-version-by-default/119842
**Category:** Elasticsearch
**Created:** [February 14, 2018, 4:21pm UTC](https://discuss.elastic.co/t/search-api-why-doesnt-it-return-version-by-default/119842 "2018-02-14T16:21:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jay\_Hilden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jay_hilden/32/877_2.png) [@Jay\_Hilden](https://discuss.elastic.co/u/Jay_Hilden)
#### Post date: [February 14, 2018, 4:21pm UTC](https://discuss.elastic.co/t/search-api-why-doesnt-it-return-version-by-default/119842/1 "2018-02-14T16:21:53Z")

</div>

When using the `_search` API if you want the version number of every record to be returned you need to specify that directly. [source](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-version.html)

```auto
    GET /_search
    {
        "version": true,
        "query" : {
            "term" : { "user" : "kimchy" }
        }
    }

```

Why is this? Is there a performance hit for returning the version with every record?

---

<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: [March 14, 2018, 4:21pm UTC](https://discuss.elastic.co/t/search-api-why-doesnt-it-return-version-by-default/119842/2 "2018-03-14T16:21:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
