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.x
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)
-
Deprecated FieldsFieldDescriptionthis query param will be replaced by the selector `::` on the expression levelthis value will be replaced by the selector `::*` on the expression levelthis value will be replaced by the selector `::failures` on the expression levelthis value will be replaced by the selector `::data` on the expression levelall requests should specify a timeout, see #107984.declare your own logger.transition mechanism only, do not use
-
Deprecated MethodsMethodDescriptionJust create the
ActionType
directly.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.The global retention is not used anymore in the component template responseglobal retention is not used in composable templates anymoreuseBulkRequestBuilder.add(DeleteRequestBuilder)
insteaduseBulkRequestBuilder.add(IndexRequestBuilder)
insteaduseBulkRequestBuilder.add(UpdateRequestBuilder)
insteadUseGetResponse.getSource()
insteaduseTermVectorsRequest.doc(BytesReference, boolean, XContentType)
to avoid content auto detectionremove 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.Use 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.No-op circuit-breaked factory for TDigestState. Used in _search aggregations. Please use theTDigestState.create(CircuitBreaker, double)
method instead on new usages.No-op circuit-breaked factory for TDigestState. Used in _search aggregations. Please use theTDigestState.create(CircuitBreaker, double, TDigestExecutionHint)
method instead on new usages.No-op circuit-breaked factory for TDigestState. Used in _search aggregations. Please use theTDigestState.read(CircuitBreaker, StreamInput)
method instead on new usages.Use of semantic release versions should be minimized; please avoid use of this method if possible.
-
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
ActionType
directly.