LUCENE-4100: Fix more queries to implement the new updated createWeight API.

This commit is contained in:
Adrien Grand 2017-12-08 08:50:00 +01:00
parent d5c72eb588
commit 0e1d6682d6
2 changed files with 4 additions and 2 deletions

View File

@ -71,7 +71,8 @@ public class ExportQParserPlugin extends QParserPlugin {
return null;
}
public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException{
@Override
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException{
return mainQuery.createWeight(searcher, ScoreMode.COMPLETE, boost);
}

View File

@ -113,7 +113,8 @@ public class HashQParserPlugin extends QParserPlugin {
this.worker = worker;
}
public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException {
@Override
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException {
String[] keys = keysParam.split(",");
SolrIndexSearcher solrIndexSearcher = (SolrIndexSearcher)searcher;