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:
Yonik Seeley 2008-03-04 17:42:44 +00:00
parent a5acf417d1
commit 5b4ed51ec7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}