I am using ES 5.5 and prepareSearch.get to search for results.
https://www.elastic.co/guide/en/elasticsearch/reference/5.5/search.html
The search API call in ES returns data on successful and failed shards, but the transport client does not return this in the response. Is there a way to get these stats with each prepareSearch call?
Also, is there a way to fail search requests when there are failed shards?