Thanks for the suggestion Uwe.
We will look into upgrading to a newer version. But upgrading to 6 would mean
using Java 8 and we are not ready for that yet.
We also want to start using DrillSideways. What version was that introduced in?
I am using version 4.4 and DrillSideways is available but
The cost() method on DocIdSetIterator is responsible for telling
BooleanQuery how costly that clause is, and how cost() is implemented
varies by query.
For the multi-term queries, like WildcardQuery, Lucene will first
visit all matched terms (during the Query.rewrite phase), and rewrite
the query