Shard query cache without specifying search_type parameter

Hi all,
I need to calculate aggregations for every search request since my UI
requires it.
For performance considerations I ended up splitting every search request to
2, the first to do the information retrieval itself and another to
aggregate the results while using the query cache by specifying

Is there a way for me to do both requests in one? e.g, to change the search
type to a type that knows to use the cache when possible?

Thanks a lot!

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
To view this discussion on the web visit
For more options, visit