Most sections of code are time-checked but some are not e.g. if loading fielddata for the first time this un-inversion of data is for the benefit of potentially many queries not just the first one that needs fielddata so we don't abort that loop.
However, other scenarios might be a runaway script that is doing something funky.
What query is causing this and what version are you on? It's useful for us to diagnose examples of runaway searches.
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.