CollectionTerminatedException
Throw this exception in LeafCollector.collect to prematurely terminate collection of the current leaf.
Note: IndexSearcher swallows this exception and never re-throws it. As a consequence, you should not catch it when calling the different search methods that IndexSearcher exposes as it is unnecessary and might hide misuse of this exception.