Deprecated API
Contents
-
Terminally Deprecated Elements
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionfor removalECSJsonlayout should be used as JSON logs layoutthis class is kept in order to allow working log configuration from 7.xThe sparse_vector type was deprecated in 7.x and removed in 8.0. This mapper definition only exists so that 7.x indices can be read without error. TODO: remove in 9.0.
BM25Similarity
should be used insteadOnly for 7.x rest compat
-
Deprecated Enum ClassesEnum ClassDescriptionWe are in the process of replacing this class with
ValuesSourceType
, so new uses or entries to the enum are discouraged. There is currently no migration path for existing uses, notably parsing user value type hints and Composite aggregation, should continue to use this for now. Most importantly DO NOT ADD NEW PLACES WE SERIALIZE THIS ENUM!
-
Deprecated ExceptionsExceptionsDescriptionUse ScriptException for exceptions from the scripting engine, otherwise use a more appropriate exception (e.g. if thrown from various abstractions)This exception isn't thrown anymore. It's only here for BwC.
-
Deprecated FieldsFieldDescriptiondeclare your own logger.transition mechanism only, do not use
-
Deprecated MethodsMethodDescriptionin favour of
ActionListener.running(Runnable)
because this implementation doesn't "wrap" exceptions fromActionListener.onResponse(Response)
intoActionListener.onFailure(java.lang.Exception)
.Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.UseGetResponse.getSource()
insteaduseTermVectorsRequest.doc(BytesReference, boolean, XContentType)
to avoid content auto detectionUseUpdateRequest.script(Script)
insteadUseUpdateRequest.script(Script)
insteadUseUpdateRequest.script(Script)
insteadUseUpdateRequest.script(Script)
insteadUseUpdateRequest.script(Script)
insteadUseUpdateRequest.script()
insteadUseUpdateRequest.script(Script)
insteadUseUpdateRequest.script()
insteadUseUpdateRequest.script(Script)
insteadUseUpdateRequest.script()
insteadUseUpdateRequest.script()
insteadremove this when multihoming is really correctWe're in the process of abstracting offset *into* Rounding so keep any usage to migratory shimsPreferRounding.prepare(long, long)
and thenRounding.Prepared.round(long)
only used by S3 repository module insecure credentials functionalitydon't add usages of this method, it will be removed eventually TODO: remove this method, it makes no sense to turn potentially very large chunked xcontent instances into a stringdon't add usages of this method, it will be removed eventually TODO: remove this method, it makes no sense to turn potentially very large chunked xcontent instances into a stringUseFeatureFlag(String)
insteadthis method relies on auto-detection of content type. UseXContentHelper.convertToMap(BytesReference, boolean, XContentType)
instead with the properXContentType
useXContentHelper.createParser(XContentParserConfiguration, BytesReference, XContentType)
to avoid content type auto-detectionuseXContentHelper.createParser(XContentParserConfiguration, BytesReference, XContentType)
to avoid content type auto-detectionif is null, this method relies on auto-detection of content type. Provide a non-null XContentType instead.useXContentHelper.writeRawField(String, BytesReference, XContentType, XContentBuilder, Params)
to avoid content type auto-detectionthe 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.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.we are actively deprecating and removing the ability to pass complex objects to multifields, so try and avoid using this method Replace the XContentParser used by this contextUse an instance method isMetadataField insteadplease use maxDocs(int) instead.Specifying a sort field for reindex is deprecated. If using this in combination with maxDocs, consider using a query filter instead.
-
Deprecated ConstructorsConstructorDescriptionOnly use for compatibility between deprecated string settings and new secure stringsUse the ctor that takes a
ContextParser
insteadUse the ctor that takes aContextParser
insteadprefer the ctor that takes aContextParser
prefer the ctor that takes aContextParser
-
Deprecated Enum ConstantsEnum ConstantDescription
ActionListener.running(Runnable)
because this implementation doesn't "wrap" exceptions fromActionListener.onResponse(Response)
intoActionListener.onFailure(java.lang.Exception)
.