Deprecated API
Contents
-
ClassDescription
BM25Similarity
should be used insteadSince max_optimization optimization landed in 7.0, normal MatchQuery will achieve the same result without any configuration.As of 2.1, because supporting inclusive language, replaced byClusterManagerNodeOperationRequestBuilder
As of 2.1, because supporting inclusive language, replaced byClusterManagerNodeReadOperationRequestBuilder
As of 2.1, because supporting inclusive language, replaced byClusterManagerNodeReadRequest
As of 2.1, because supporting inclusive language, replaced byClusterManagerNodeRequest
As of 2.1, because supporting inclusive language, replaced byTransportClusterManagerNodeAction
As of 2.1, because supporting inclusive language, replaced byTransportClusterManagerNodeReadAction
this class is deprecated and classes will extend TransportRequest directlyAs of 2.2, because supporting inclusive language, replaced byNoClusterManagerBlockService
As of 2.2, because supporting inclusive language, replaced byUnsafeBootstrapClusterManagerCommand
As of 2.2, because supporting inclusive language, replaced byClusterManagerNodeChangePredicate
As of 2.4.0, replaced byLocalShardsBalancer
As of 2.2, because supporting inclusive language, replaced byClusterManagerService
.This class is deprecated and will be removed when theDeflateCompressor
is moved to the compress library as a default compression optiontypes are being removedwill be removed in the next versionSince max_optimization optimization landed in 7.0, normal MatchQuery will achieve the same result without any configuration.this will be removed in a future releaseremove since synced flush is removedAs of 2.2, because supporting inclusive language, replaced byRestClusterManagerAction
This class is deprecated in favor of ScriptStats and ScriptContextStats. It is removed in OpenSearch 2.0.
-
ExceptionsDescriptionAs of 2.2, because supporting inclusive language, replaced by
NotClusterManagerException
As of 2.2, because supporting inclusive language, replaced byClusterManagerNotDiscoveredException
Types are removedUse ScriptException for exceptions from the scripting engine, otherwise use a more appropriate exception (e.g. if thrown from various abstractions)
-
Annotation TypeDescription
FactoryProvider
now works better with the standard @Inject annotation. When using that annotation, parameters are matched by name and type rather than by position. In addition, values that use the standard @Inject constructor annotation are eligible for method interception.
-
FieldDescriptionAs of 2.1, because supporting inclusive language, replaced by
ClusterManagerNodeRequest.DEFAULT_CLUSTER_MANAGER_NODE_TIMEOUT
As of 2.1, because supporting inclusive language, replaced byClusterManagerNodeRequest.clusterManagerNodeTimeout
declare your own logger.As of 2.0, because supporting inclusive language, replaced byCoordinationMetadata.VotingConfiguration.MUST_JOIN_ELECTED_CLUSTER_MANAGER
As of 2.2, because supporting inclusive language, replaced byNoClusterManagerBlockService.NO_CLUSTER_MANAGER_BLOCK_ALL
As of 2.2, because supporting inclusive language, replaced byNoClusterManagerBlockService.NO_CLUSTER_MANAGER_BLOCK_ID
As of 2.2, because supporting inclusive language, replaced byNoClusterManagerBlockService.NO_CLUSTER_MANAGER_BLOCK_METADATA_WRITES
As of 2.2, because supporting inclusive language, replaced byNoClusterManagerBlockService.NO_CLUSTER_MANAGER_BLOCK_WRITES
As of 2.0, because promoting inclusive language, replaced byDiscoveryNodeRole.CLUSTER_MANAGER_ROLE
transition mechanism only, do not useThis setting will be removed in OpenSearch 3.x. UseIndexModule.INDEX_STORE_HYBRID_NIO_EXTENSIONS
instead.Since max_optimization optimization landed in 7.0, normal MatchQuery will achieve the same result without any configuration.please use MAX_DOCS_ALL_MATCHES instead.declare your own logger.
-
MethodDescriptionSince max_score optimization landed in 7.0, normal MultiMatchQuery will achieve the same result without any configuration.As of 2.2, because supporting inclusive language, replaced by
ClusterHealthResponse.hasDiscoveredClusterManager()
org.opensearch.action.admin.indices.create.CreateIndexRequest.source(byte[], int, int, XContentType) useCreateIndexRequest.source(String, MediaType)
insteadUseBulkProcessor.builder(java.util.function.BiConsumer, org.opensearch.action.bulk.BulkProcessor.Listener)
with client::bulk as the first argument, orBulkProcessor.builder(org.opensearch.client.Client, org.opensearch.action.bulk.BulkProcessor.Listener, org.opensearch.threadpool.Scheduler, org.opensearch.threadpool.Scheduler, java.lang.Runnable)
and manage the flush and retry schedulers explicitlyUseGetResponse.getSource()
insteadAs of 2.1, because supporting inclusive language, replaced byClusterManagerNodeOperationRequestBuilder.setClusterManagerNodeTimeout(String)
As of 2.1, because supporting inclusive language, replaced byClusterManagerNodeOperationRequestBuilder.setClusterManagerNodeTimeout(TimeValue)
As of 2.1, because supporting inclusive language, replaced byClusterManagerNodeRequest.clusterManagerNodeTimeout()
As of 2.1, because supporting inclusive language, replaced byClusterManagerNodeRequest.clusterManagerNodeTimeout(String)
As of 2.1, because supporting inclusive language, replaced byClusterManagerNodeRequest.clusterManagerNodeTimeout(TimeValue)
As of 2.2, because supporting inclusive language, replaced byTransportClusterInfoAction.doClusterManagerOperation(ClusterInfoRequest, String[], ClusterState, ActionListener)
As of 2.2, because supporting inclusive language, replaced byTransportClusterInfoAction.clusterManagerOperation(ClusterInfoRequest, ClusterState, ActionListener)
As of 2.1, because supporting inclusive language, replaced byTransportClusterManagerNodeAction.getClusterManagerActionName(DiscoveryNode)
As of 2.2, because supporting inclusive language, replaced byTransportClusterManagerNodeAction.clusterManagerOperation(Task, ClusterManagerNodeRequest, ClusterState, ActionListener)
As of 2.2, because supporting inclusive language, replaced byTransportClusterManagerNodeAction.clusterManagerOperation(ClusterManagerNodeRequest, ClusterState, ActionListener)
useTermVectorsRequest.doc(BytesReference, boolean, MediaType)
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()
insteadAs of 2.2, because supporting inclusive language, replaced byAckedRequest.clusterManagerNodeTimeout()
As of 2.2, because supporting inclusive language, replaced byMappingUpdatedAction.updateMappingOnClusterManager(Index, Mapping, ActionListener)
As of 2.2, because supporting inclusive language, replaced byClusterChangedEvent.localNodeClusterManager()
As of 2.1, because supporting inclusive language, replaced byClusterStateTaskExecutor.runOnlyOnClusterManager()
As of 2.1, because supporting inclusive language, replaced byClusterStateTaskListener.onNoLongerClusterManager(String)
As of 2.0, because supporting inclusive language, replaced byJoinTaskExecutor.newBecomeClusterManagerTask()
As of 2.2, because supporting inclusive language, replaced byJoinTaskExecutor.Task.isBecomeClusterManagerTask()
As of 2.2, because supporting inclusive language, replaced byNoClusterManagerBlockService.getNoClusterManagerBlock()
As of 2.2, because supporting inclusive language, replaced byPeersResponse.getClusterManagerNode()
As of 2.2, because supporting inclusive language, replaced byClusterStateHealth.hasDiscoveredClusterManager()
As of 2.2, because supporting inclusive language, replaced byLocalNodeMasterListener.offClusterManager()
As of 2.2, because supporting inclusive language, replaced byLocalNodeMasterListener.onClusterManager()
As of 2.2, because supporting inclusive language, replaced byMetadataIndexTemplateService.PutRequest.clusterManagerTimeout(TimeValue)
As of 2.2, because supporting inclusive language, replaced byMetadataIndexTemplateService.RemoveRequest.clusterManagerTimeout
As of 2.2, because supporting inclusive language, replaced byDiscoveryNode.isClusterManagerNode()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNode.isClusterManagerNode(Settings)
As of 2.0, because promoting inclusive language. MASTER_ROLE is deprecated.As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.Builder.isLocalNodeElectedClusterManager()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.Builder.clusterManagerNodeId
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.Delta.clusterManagerNodeChanged()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.Delta.newClusterManagerNode()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.Delta.previousClusterManagerNode()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.getClusterManagerAndDataNodes()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.getClusterManagerNode()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.getClusterManagerNodeId()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.getClusterManagerNodes()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.isLocalNodeElectedClusterManager()
As of 2.2, because supporting inclusive language, replaced byDiscoveryNodes.clusterManagersFirstStream()
As of 2.2, because supporting inclusive language, replaced byDelayedAllocationService.assertClusterOrClusterManagerStateThread()
As of 2.1, because supporting inclusive language, replaced byClusterApplierService.addLocalNodeClusterManagerListener(org.opensearch.cluster.LocalNodeClusterManagerListener)
As of 2.2, because supporting inclusive language, replaced byClusterService.addLocalNodeClusterManagerListener(org.opensearch.cluster.LocalNodeClusterManagerListener)
As of 2.2, because supporting inclusive language, replaced byClusterService.assertClusterOrClusterManagerStateThread()
As of 2.2, because supporting inclusive language, replaced byClusterService.getClusterManagerService()
As of 2.2, because supporting inclusive language, replaced byMasterService.assertClusterManagerUpdateThread()
As of 2.2, because supporting inclusive language, replaced byMasterService.assertNotClusterManagerUpdateThread(String)
remove 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)
this method relies on auto-detection of content type. UseXContentHelper.convertToMap(BytesReference, boolean, MediaType)
instead with the properXContentType
useXContentHelper.createParser(NamedXContentRegistry, DeprecationHandler, BytesReference, MediaType)
to avoid content type auto-detectionuseXContentHelper.writeRawField(String, BytesReference, XContentType, XContentBuilder, Params)
to avoid content type auto-detectionreading history operations from the translog file is deprecated and will be removed in the next releasereading history operations from the translog file is deprecated and will be removed in the next release UseEngine.newChangesSnapshot(String, long, long, boolean, boolean)
insteadreading history operations from the translog file is deprecated and will be removed in the next release UseEngine.newChangesSnapshot(String, long, long, boolean, boolean)
insteadThis setting will be removed in 8.0seeMatchQueryBuilder.CUTOFF_FREQUENCY_FIELD
for more detailsSince max_score optimization landed in 7.0, normal MultiMatchQuery will achieve the same result without any configuration.Since max_score optimization landed in 7.0, normal MultiMatchQuery will achieve the same result without any configuration.useQueryBuilders.geoDisjointQuery(String, Geometry)
insteaduseQueryBuilders.geoShapeQuery(String, Geometry)
insteaduseQueryBuilders.geoWithinQuery(String, Geometry)
insteadplease use getMaxDocs() instead.please use setMaxDocs(int) instead.please 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.SeeMatchQuery.setCommonTermsCutoff(Float)
for more detailsAs of 2.2, because supporting inclusive language, replaced byReplicationTracker.updateFromClusterManager(long, Set, IndexShardRoutingTable)
reading history operations from the translog file is deprecated and will be removed in the next release UseIndexShard.getHistoryOperations(String, long, long, boolean)
insteadPlease usegetCustomCodecServiceFactory()
instead as it provides more context forCodecService
instance construction.Pipelines implemented after 7.8.0 do not need to be sent across the wirethis method is only used when taking snapshots in a mixed version cluster where a cluster-manager node older thanSnapshotsService.NO_REPO_INITIALIZE_VERSION
is present.please useexplain(Explanation subQueryScore, @Nullable String scriptName)
only use these for serializing to older OpenSearch versionsthese only exist for BWC serializationorg.opensearch.search.aggregations.metrics.AbstractPercentilesAggregationBuilder.compression(double) pipeline aggregations added after 7.8.0 don't need to implement thispipeline aggregations added after 7.8.0 don't need to implement thispipeline aggregations added after 7.8.0 shouldn't call thisset nested sort withFieldSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withFieldSortBuilder.getNestedSort()
set nested sort withFieldSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withFieldSortBuilder.getNestedSort()
set nested sort withFieldSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withFieldSortBuilder.getNestedSort()
set nested sort withFieldSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withFieldSortBuilder.getNestedSort()
set nested sort withGeoDistanceSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withGeoDistanceSortBuilder.getNestedSort()
set nested sort withGeoDistanceSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withGeoDistanceSortBuilder.getNestedSort()
set nested sort withGeoDistanceSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withGeoDistanceSortBuilder.getNestedSort()
set nested sort withGeoDistanceSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withGeoDistanceSortBuilder.getNestedSort()
set nested sort withScriptSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withScriptSortBuilder.getNestedSort()
set nested sort withScriptSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withScriptSortBuilder.getNestedSort()
set nested sort withScriptSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withScriptSortBuilder.getNestedSort()
set nested sort withScriptSortBuilder.setNestedSort(NestedSortBuilder)
and retrieve withScriptSortBuilder.getNestedSort()
-
ConstructorDescriptionuse
AbstractGeometryQueryBuilder(String, Geometry)
insteadSeeCommonTermsQueryBuilder
for more details.SeeCommonTermsQueryBuilder
for more details.useGeoShapeQueryBuilder(String, Geometry)
insteadUse the ctor that takes aContextParser
insteadUse the ctor that takes aContextParser
insteadUsePipelineAggregationSpec(String, Writeable.Reader, ContextParser)
for pipelines implemented after 7.8.0prefer the ctor that takes aContextParser
UsePipelineAggregationSpec(ParseField, Writeable.Reader, ContextParser)
for pipelines implemented after 7.8.0prefer the ctor that takes aContextParser
pipeline aggregations added after 7.8.0 shouldn't call this
-
Enum ConstantDescriptionAs of 2.0, because promoting inclusive language, replaced by
ClusterState.Metric.CLUSTER_MANAGER_NODE
LocalNodeClusterManagerListener