Performance impact of selective output with source filtering vs fields

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Performance impact of selective output with source filtering vs fields

Sanjeev Kumar
This post has NOT been accepted by the mailing list yet.
I have an index which has _source enabled to true.
I don't store any fields. i.e store:false for all fields.

Now I fire the search query A
with fields
{
"query": {....},
"fields" : ["field-a","field-b"]
}

or
search query B with source filtering
{
"query": {....},
"_source" : ["field-a","field-b"]
}


Which one is faster or better assuming that I don't store any fields or are they similar in performance in my case?