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

(Jay Hilden) #1

When using the _search API if you want the version number of every record to be returned you need to specify that directly. source

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

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

(system) #2

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