Function score query: Add missing whitespace when throwing exception

DecayFunctionParser throws a parse exception with a string containing "scaleand origin", this fixes the spacing issue.
This commit is contained in:
Skye Book 2014-05-13 12:48:42 -04:00 committed by Luca Cavanna
parent 8e862f15c1
commit 0040ed4f6f
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ public abstract class DecayFunctionParser implements ScoreFunctionParser {
}
}
if (!scaleFound || !refFound) {
throw new ElasticsearchParseException("Both " + DecayFunctionBuilder.SCALE + "and " + DecayFunctionBuilder.ORIGIN
throw new ElasticsearchParseException("Both " + DecayFunctionBuilder.SCALE + " and " + DecayFunctionBuilder.ORIGIN
+ " must be set for numeric fields.");
}
IndexNumericFieldData numericFieldData = parseContext.getForField(mapper);