Specifying search fields in search request

Each field given in search request adds up to search performance because
the field must be searched, weighted, scored, and ranked.

I recommend using _all field, or combining fields into fewer fields with
"copy_to", and use as few fields as possible for search.

Jörg

On Sun, Nov 23, 2014 at 10:56 AM, Ajay Divakaran <ajay.divakaran86@gmail.com

wrote:

Hi all,

I'm using ES version 0.90.7.

My requirement is to fetch all the fields of the JSON documents that I
search/filter for. Is there a performance difference in specifying all the
field names in the search request vs not specifying the 'fields' parameter.

By not specifying the fields parameter I see the response time to be
relatively faster.

Could someone explain this behavior?

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/f5bc301b-85d4-4a66-861e-3b57071e1997%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/f5bc301b-85d4-4a66-861e-3b57071e1997%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoF__y0Ar8NuzmhmXYMXiVcGokx4x8aV5D_-sNpHYrUzPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.