Re: propagate Query.rewrite call to super.rewrite after 5.4 upgrade

2015-12-17 Thread Adrien Grand
Hi Markus, This is indeed related to LUCENE-6590: query boosts are now applied with BoostQuery and if Query.setBoost is called on a query, its rewrite implementation needs to rewrite to a BoostQuery. You can do that by prepending the following to your rewrite(IndexReader) implementation: if

propagate Query.rewrite call to super.rewrite after 5.4 upgrade

2015-12-17 Thread Markus Jelsma
Hi, Apologies for the cross post. We have a class overridding SpanPositionRangeQuery. It is similar to a SpanFirst query but it is capable of adjusting the boost value with regard to distance. With the 5.4 upgrade the unit tests suddenly threw the following exception: Query class