-
Methods Method Description org.elasticsearch.common.xcontent.support.AbstractXContentParser.booleanValueLenient() org.elasticsearch.common.xcontent.support.AbstractXContentParser.isBooleanValueLenient() org.elasticsearch.common.xcontent.XContentBuilder.rawField(String, InputStream) useXContentBuilder.rawField(String, InputStream, XContentType)
to avoid content type auto-detectionorg.elasticsearch.common.xcontent.XContentFactory.xContent(CharSequence) the content type should not be guessed except for few cases where we effectively don't know the content type. The REST layer should move to reading the Content-Type header instead. There are other places where auto-detection may be needed. This method is deprecated to prevent usages of it from spreading further without specific reasons.org.elasticsearch.common.xcontent.XContentFactory.xContentType(CharSequence) the content type should not be guessed except for few cases where we effectively don't know the content type. The REST layer should move to reading the Content-Type header instead. There are other places where auto-detection may be needed. This method is deprecated to prevent usages of it from spreading further without specific reasons.org.elasticsearch.common.xcontent.XContentGenerator.writeRawField(String, InputStream) useXContentGenerator.writeRawField(String, InputStream, XContentType)
to avoid content type auto-detectionorg.elasticsearch.common.xcontent.XContentParser.booleanValueLenient() Just present for providing backwards compatibility. UseXContentParser.booleanValue()
instead.org.elasticsearch.common.xcontent.XContentParser.isBooleanValueLenient() Just present for providing backwards compatibility. UseXContentParser.isBooleanValue()
instead.