mirror of https://github.com/apache/lucene.git
create QueryValueSource from boost, not from main query
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@633564 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a5acf417d1
commit
5b4ed51ec7
|
@ -56,7 +56,7 @@ public class BoostQParserPlugin extends QParserPlugin {
|
|||
if (bq instanceof FunctionQuery) {
|
||||
vs = ((FunctionQuery)bq).getValueSource();
|
||||
} else {
|
||||
vs = new QueryValueSource(q, 0.0f);
|
||||
vs = new QueryValueSource(bq, 0.0f);
|
||||
}
|
||||
return new BoostedQuery(q, vs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue