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:
parent
8e862f15c1
commit
0040ed4f6f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue