Fix the quotes in the explain message for a script score function without parameters

This commit is contained in:
Andreas Kohn 2015-05-28 17:15:55 +02:00
parent 7557eae9e0
commit 03cb92f99f
1 changed files with 2 additions and 2 deletions

View File

@ -111,9 +111,9 @@ public class ScriptScoreFunction extends ScoreFunction {
exp = ((ExplainableSearchScript) leafScript).explain(subQueryScore);
} else {
double score = score(docId, subQueryScore.getValue());
String explanation = "script score function, computed with script:\"" + sScript;
String explanation = "script score function, computed with script:\"" + sScript + "\"";
if (sScript.getParams() != null) {
explanation += "\" and parameters: \n" + sScript.getParams().toString();
explanation += " and parameters: \n" + sScript.getParams().toString();
}
Explanation scoreExp = Explanation.match(
subQueryScore.getValue(), "_score: ",