From ef85412f98e97ff5471013eab59fd8cb3046c17a Mon Sep 17 00:00:00 2001 From: kimchy Date: Fri, 12 Mar 2010 16:30:30 +0200 Subject: [PATCH] fix name --- .../index/mapper/json/JsonBoostFieldMapper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/json/JsonBoostFieldMapper.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/json/JsonBoostFieldMapper.java index 25e243cb911..ff4061f6909 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/json/JsonBoostFieldMapper.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/json/JsonBoostFieldMapper.java @@ -126,7 +126,7 @@ public class JsonBoostFieldMapper extends JsonNumberFieldMapper implement @Override public void parse(JsonParseContext jsonContext) throws IOException { // we override parse since we want to handle cases where it is not indexed and not stored (the default) - float value = parsedFloatValue(jsonContext); + float value = parseFloatValue(jsonContext); if (!Float.isNaN(value)) { jsonContext.doc().setBoost(value); } @@ -134,7 +134,7 @@ public class JsonBoostFieldMapper extends JsonNumberFieldMapper implement } @Override protected Field parseCreateField(JsonParseContext jsonContext) throws IOException { - float value = parsedFloatValue(jsonContext); + float value = parseFloatValue(jsonContext); if (Float.isNaN(value)) { return null; } @@ -151,7 +151,7 @@ public class JsonBoostFieldMapper extends JsonNumberFieldMapper implement return field; } - private float parsedFloatValue(JsonParseContext jsonContext) throws IOException { + private float parseFloatValue(JsonParseContext jsonContext) throws IOException { float value; if (jsonContext.jp().getCurrentToken() == JsonToken.VALUE_NULL) { if (nullValue == null) {