mirror of https://github.com/apache/lucene.git
LUCENE-4100: Fix more queries to implement the new updated createWeight API.
This commit is contained in:
parent
d5c72eb588
commit
0e1d6682d6
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue