safeJsonBuilder missing from the XContentFactory in the 0.18.x versions


(danpolites) #1

We upgraded our Java application from es 0.17.8 to 0.18.6 and quickly
realized that the safeJsonBuilder is not part of the 0.18.x
XContentFactory API. Our application is currently using this method.
Is there a replacement for it or is the json builder always safe now?


(danpolites) #2

Note to self, read the release notes:

Java API: XContentFactory creation of XContentBuilder to always be
“safe”

On Dec 27, 12:33 pm, danpolites dpoli...@gmail.com wrote:

We upgraded our Java application from es 0.17.8 to 0.18.6 and quickly
realized that the safeJsonBuilder is not part of the 0.18.x
XContentFactory API. Our application is currently using this method.
Is there a replacement for it or is the json builder always safe now?


(Kun Niu) #3

jsonBuilder is refactored. I think you can use it.

Kun Niu

-----Original Message-----
From: elasticsearch@googlegroups.com
[mailto:elasticsearch@googlegroups.com] On Behalf Of danpolites
Sent: 2011年12月28日 1:33
To: elasticsearch
Subject: safeJsonBuilder missing from the XContentFactory in the 0.18.x
versions

We upgraded our Java application from es 0.17.8 to 0.18.6 and quickly
realized that the safeJsonBuilder is not part of the 0.18.x
XContentFactory
API. Our application is currently using this method.
Is there a replacement for it or is the json builder always safe now?


(system) #4