Skip to content

Commit

Permalink
Merge pull request #845 from lonvia/fix-os-number-output
Browse files Browse the repository at this point in the history
opensearch: fix translation of numbers during deserialization
  • Loading branch information
lonvia authored Nov 12, 2024
2 parents 3bac9aa + 7be35ef commit daae537
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ public OpenSearchResult deserialize(JsonParser p, DeserializationContext ctxt) t
tags.put(key, value.asText());
} else if (value.isInt()) {
tags.put(entry.getKey(), value.asInt());
} else if (value.isBigInteger()) {
} else if (value.isLong()) {
tags.put(entry.getKey(), value.asLong());
} else if (value.isFloatingPointNumber()) {
tags.put(entry.getKey(), value.asDouble());
} else if (value.isObject()) {
Map<String, String> vtags = new HashMap<>();
var subfields = value.fields();
Expand Down

0 comments on commit daae537

Please sign in to comment.