> On Feb 2, 2016, at 8:57 AM, Elodie Sannier <elodie.sann...@kelkoo.fr> wrote:
> 
> Hello,
> 
> We are using solr 4.10.4 and we want to update to 5.4.1.
> 
> With solr 4.10.4:
> - we extend PhraseQuery with a custom class in order to remove some
> terms from phrase queries with phrase slop (update of add(Term term, int
> position) method)
> - in order to use our implementation, we extend ExtendedSolrQueryParser
> with a custom class and we override the method newPhraseQuery but with
> solr 5 this method does not exist anymore
> 
> How can we do this with solr 5.4.1 ?


You’ll want to override this method, it looks like:

   protected Query getFieldQuery(String field, String queryText, int slop)


Reply via email to