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

2015-12-17 Thread Alan Woodward
t; Sent: Thursday 17th December 2015 14:40 >> To: solr-user ; java-user@lucene.apache.org >> Subject: Re: propagate Query.rewrite call to super.rewrite after 5.4 upgrade >> >> Hi Markus, >> >> This is indeed related to LUCENE-6590: query boosts are now ap

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

2015-12-17 Thread Markus Jelsma
ate Query.rewrite call to super.rewrite after 5.4 upgrade > > 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

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 (getB