Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XContentBuilder.writeValue() serializes java.math.BigDecimal as String #12385

Closed
nickivanov opened this issue Jul 21, 2015 · 1 comment
Closed

Comments

@nickivanov
Copy link

When adding documents to the index that are represented by Map<String, Object>, and the documents contain instances of java.math.BigDecimal or java.math.BigInteger, they are serialized as strings, and are subsequently mapped by Elasticsearch to string fields.
Although java.math.BigDecimal and java.math.BigInteger are supported by Jackson, XContentBuilder.writeValue() defaults to represent these data types as strings.

@clintongormley
Copy link
Contributor

Lucene currently has no support for BigInteger/Decimal.

Closing in favour of #5683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants