mirror of https://github.com/apache/lucene.git
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:
parent
cc053495de
commit
22566505e0
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue