- Upgrading OpenSearch.Net & OpenSearch.Client
- 1.x.y to 2.0.0
- OpenSearch.Net
- General
- Bulk Action
- DeleteByQuery Action
- ReindexOnServer Action
- Search Action
- UpdateByQuery Action
- Cat.Help Action
- Cat.Indices Action
- Cat.Master Action
- Cat.Plugins Action
- Cat.Recovery Action
- Cluster.ExistsComponentTemplate Action
- Cluster.Health Action
- Cluster.PostVotingConfigExclusions Action
- Cluster.Reroute Action
- Features Namespace
- Indices.AddBlock Action
- Indices.Analyze Action
- Indices.ClearCache Action
- Indices.DeleteTemplateV2 Action
- Indices.ExistsTemplate Action
- Indices.GetTemplateV2 Action
- Indices.PutTemplateV2 Action
- Indices.ShardStores Action
- Indices.Stats Action
- Nodes.HotThreads Action
- Nodes.Stats Action
- Snapshot.CleanupRepository Action
- Tasks.List Action
- OpenSearch.Client
- General
- Bulk Action
- UpdateByQuery Action
- Cat.Help Action
- Cat.Indices Action
- Cat.Master Action
- Cat.Plugins Action
- Cluster.GetComponentTemplate Action
- Cluster.Health Action
- Cluster.PostVotingConfigExclusions Action
- Cluster.Reroute Action
- Cluster.Stats Action
- Indices.GetComposableTemplate Action
- Nodes.HotThreads Action
- Nodes.Stats Action
- Tasks.List Action
- OpenSearch.Net
- 1.x.y to 2.0.0
- Support for .NET Framework v4.6.1 has been removed, if you have a .NET Framework based project it is recommended to upgrade the project to target .NET Framework v4.7.2 or higher.
- The
MasterTimeSpanout
&ClusterManagerTimeSpanout
parameters on all actions have been corrected toMasterTimeout
andClusterManagerTimeout
respectively. - The
MasterTimeout
parameters on all actions have been marked[Obsolete]
, please migrate to usingClusterManagerTimeout
if your OpenSearch cluster is at least version2.0.0
asMasterTimeout
may be removed in future major versions. - The
ExpandWildcards
enum is now attributed with[Flags]
to allow combining of multiple values e.g.ExpandWildcards.Open | ExpandWildcards.Closed
to match open and closed indexes but not hidden. - The
Bytes
enum has been renamed toByteUnit
. - All instances of the
Routing
parameter now accept an array of strings instead of a single string to better represent the underlying API that accepts comma-separated lists.
- The
TypeQueryString
parameter has been renamed to simplyType
.
- The
Slices
parameter now accepts astring
instead of along
as the API can also accept the string"auto"
.
- The
Slices
parameter now accepts astring
instead of along
as the API can also accept the string"auto"
.
- The
MinCompatibleShardNode
parameter has been removed as it was never supported by OpenSearch.
- The
Slices
parameter now accepts astring
instead of along
as the API can also accept the string"auto"
. - The
VersionType
parameter has been removed as it was never supported by OpenSearch.
- The
Help
andSortByColumns
parameters have been removed as they are unsupported by OpenSearch.
- The
Health
parameter now accepts a newHealthStatus
enum instead of theHealth
enum. The values are identical and are now unified with other parts of the API that utilize the same enum.
- The action has been marked
[Obsolete]
, please migrate to usingCat.ClusterManager
if your OpenSearch cluster is at least version 2.0.0 asCat.Master
may be removed in future major versions.
- The
IncludeBootstrap
parameter has been removed as it was never supported by OpenSearch.
- The
IndexQueryString
parameter has been renamed to simplyIndex
.
- This action has been removed in favour of the correctly named
Cluster.ComponentTemplateExists
action.
- The
Level
parameter now accepts a newClusterHealthLevel
enum instead of theLevel
enum. The values are the same except for the addition of theAwarenessAttributes
value. - The
WaitForStatus
parameter now accepts a newHealthStatus
enum instead of theWaitForStatus
enum. The values are identical and are now unified with other parts of the API that utilize the same enum.
- The
NodeIds
&NodeNames
parameters now accept an array of strings instead of a single string to better represent the underlying API that accepts comma-separated lists.
- The
Metric
parameter has been changed from astring
to anClusterRerouteMetric
enum.
- The entire
Features
API namespace has been removed, there is no migration path as it was never supported by OpenSearch.
- The
block
parameter has been changed from astring
to anIndexApiBlock
enum.
- The
IndexQueryString
parameter has been renamed to simplyIndex
.
- The
IndexQueryString
parameter has been renamed to simplyIndex
.
- This action has been removed in favour of the more descriptively named and typed
Indices.DeleteComposableTemplate
action.
- This action has been removed due to confusing naming as it in the prior naming scheme it should have been
TemplateExistsV2
because it should be used with composable index templates, however it could be confused with the legacyTemplateExists
action. Please migrate to the correct action depending on your use case:Indices.TemplateExists
for legacy index templates, i.e. the/_template/{name}
API.Indices.ComposableTemplateExists
for newer composable index templates, i.e. the/_index_template/{name}
API.
- This action has been removed in favour of the more descriptively named and typed
Indices.GetComposableTemplate
action.
- This action has been removed in favour of the more descriptively named and typed
Indices.PutComposableTemplate
action.
- The
Status
parameter now takes anIndicesShardStoresStatus
flag enum instead of astring
array.
- The
metric
parameter has been changed from astring
to anIndicesStatsMetric
enum.
- The
ThreadType
parameter has been renamed to justType
to match the query parameter it represents. Its correspondingThreadType
enum has been renamed toNodesSampleType
.
- The
Groups
parameter's type has been corrected frombool
tostring[]
to match the API which expects a comma-separated list of groups.
- The
PostData body
parameter has been removed as the API does not expect a body to be sent.
- The
GroupBy
parameter'sGroupBy
enum has been renamed toTasksGroupBy
.
- The
MasterTimeout
parameters on all actions have been marked[Obsolete]
, please migrate to usingClusterManagerTimeout
if your OpenSearch cluster is at least version2.0.0
asMasterTimeout
may be removed in future major versions. - The
ExpandWildcards
enum is now attributed with[Flags]
to allow combining of multiple values e.g.ExpandWildcards.Open | ExpandWildcards.Closed
to match open and closed indexes but not hidden. - The namespaced APIs exposed in
IOpenSearchClient
have each gained a corresponding interface and the types of the properties onIOpenSearchClient
andOpenSearchClient
have been changed from the concrete implementations to the matching interfaces. For example,IOpenSearchClient.Cluster
wasClusterNamespace
and now isIClusterNamespace
. - The
Bytes
enum has been renamed toByteUnit
.
- The
TypeQueryString
parameter has been renamed to simplyType
.
- The
VersionType
parameter has been removed as it was never supported by OpenSearch.
- The
Help
andSortByColumns
parameters have been removed as they are unsupported by OpenSearch.
- The
Health
parameter now accepts a newHealthStatus
enum instead of theHealth
enum. The values are identical and are now unified with other parts of the API that utilize the same enum.
- The
Cat.Master
action has been marked[Obsolete]
, please migrate to usingCat.ClusterManager
if your OpenSearch cluster is at least version 2.0.0 asCat.Master
may be removed in future major versions.
- The
IncludeBootstrap
parameter of theCat.Plugins
action has been removed as it was never supported by OpenSearch.
- The variant of this action accepting a template name has been corrected to only accept a single value rather than multiple as it was previously erroneously documented as accepting a comma-separated list. Attempting to use multiple names results in a server error.
- The
Level
parameter now accepts a newClusterHealthLevel
enum instead of theLevel
enum. The values are the same except for the addition of theAwarenessAttributes
value. - The
WaitForStatus
parameter now accepts a newHealthStatus
enum instead of theWaitForStatus
enum. The values are identical and are now unified with other parts of the API that utilize the same enum. - The
Status
,Indices[<index>].Status
, andIndices[<index>].Shards[<shard>].Status
properties in the response object now return theHealthStatus
enum instead of theHealth
enum. The values are identical and are now unified with other parts of the API that utilize the same enum.
- The
NodeIds
&NodeNames
parameters now accept an array of strings instead of a single string to better represent the underlying API that accepts comma-separated lists.
- The
Metric
parameter has been changed from astring
to anClusterRerouteMetric
enum.
- The
Nodes.OperatingSystem.PrettyNames
property in the response object's item type has been renamed fromClusterOperatingSystemPrettyNane
toClusterOperatingSystemPrettyName
to correct a spelling mistake.
- The variant of this action accepting a template name has been corrected to only accept a single value rather than multiple as it was previously erroneously documented as accepting a comma-separated list. Attempting to use multiple names results in a server error.
- The
ThreadType
parameter has been renamed to justType
to match the query parameter it represents. Its correspondingThreadType
enum has been renamed toNodesSampleType
.
- The
Groups
parameter's type has been corrected frombool
tostring[]
to match the cluster which expects a comma-separated list of groups.
- The
GroupBy
parameter'sGroupBy
enum has been renamed toTasksGroupBy
. The enum otherwise remains unchanged.