fix FunctionQuery.toString(): SOLR-254

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@544342 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2007-06-05 01:40:37 +00:00
parent cc053495de
commit 22566505e0
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ public class FunctionQuery extends Query {
{
float boost = getBoost();
return (boost!=1.0?"(":"") + func.toString()
+ (getBoost()==0 ? "" : ")^"+getBoost());
+ (boost==1.0 ? "" : ")^"+boost);
}