In ES 5.6 we have been using the below statement to throw an exception and return the default response if the query execution is taking more than the given TimeValue.
requestBuilder.execute().actionGet(timeValue)
While in ES 7.6 we didn't find any method to pass the TimeValue which could throw the Execution exception. We are using the below snippet in 7.6
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.