Skip to content

Commit

Permalink
Remove features API not supported by OpenSearch (#331)
Browse files Browse the repository at this point in the history
It was added to Elasticsearch in v7.12, whereas OpenSearch forked ~v7.10

Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia authored Aug 23, 2023
1 parent 65ac116 commit c69105b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 174 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Fixed
- Fix highlight max_analyzer_offset field name to match with the one introduced in OpenSearch 2.2.0 ([#322](https://github.com/opensearch-project/opensearch-net/pull/322))

### Removed
- Removed the `Features` API which is not supported by OpenSearch from the low-level client ([#331](https://github.com/opensearch-project/opensearch-net/pull/331))

### Dependencies
- Bumps `Microsoft.CodeAnalysis.CSharp` from 4.2.0 to 4.6.0
- Bumps `Microsoft.TestPlatform.ObjectModel` from 17.5.0 to 17.7.1
Expand Down Expand Up @@ -91,4 +94,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

[Unreleased]: https://github.com/opensearch-project/opensearch-net/compare/v1.4.0...main
[1.4.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.2.0...v1.3.0
[1.3.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.2.0...v1.3.0

This file was deleted.

7 changes: 0 additions & 7 deletions src/OpenSearch.Net/IOpenSearchLowLevelClient.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
using OpenSearch.Net.Specification.CatApi;
using OpenSearch.Net.Specification.ClusterApi;
using OpenSearch.Net.Specification.DanglingIndicesApi;
using OpenSearch.Net.Specification.FeaturesApi;
using OpenSearch.Net.Specification.IndicesApi;
using OpenSearch.Net.Specification.IngestApi;
using OpenSearch.Net.Specification.NodesApi;
Expand Down Expand Up @@ -85,12 +84,6 @@ LowLevelDanglingIndicesNamespace DanglingIndices
get;
}

///<summary>Features APIs</summary>
LowLevelFeaturesNamespace Features
{
get;
}

///<summary>Indices APIs</summary>
LowLevelIndicesNamespace Indices
{
Expand Down
83 changes: 0 additions & 83 deletions src/OpenSearch.Net/OpenSearchLowLevelClient.Features.cs

This file was deleted.

8 changes: 0 additions & 8 deletions src/OpenSearch.Net/OpenSearchLowLevelClient.NoNamespace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
using OpenSearch.Net.Specification.CatApi;
using OpenSearch.Net.Specification.ClusterApi;
using OpenSearch.Net.Specification.DanglingIndicesApi;
using OpenSearch.Net.Specification.FeaturesApi;
using OpenSearch.Net.Specification.IndicesApi;
using OpenSearch.Net.Specification.IngestApi;
using OpenSearch.Net.Specification.NodesApi;
Expand Down Expand Up @@ -88,12 +87,6 @@ public LowLevelDanglingIndicesNamespace DanglingIndices
private set;
}

public LowLevelFeaturesNamespace Features
{
get;
private set;
}

public LowLevelIndicesNamespace Indices
{
get;
Expand Down Expand Up @@ -123,7 +116,6 @@ partial void SetupNamespaces()
Cat = new LowLevelCatNamespace(this);
Cluster = new LowLevelClusterNamespace(this);
DanglingIndices = new LowLevelDanglingIndicesNamespace(this);
Features = new LowLevelFeaturesNamespace(this);
Indices = new LowLevelIndicesNamespace(this);
Ingest = new LowLevelIngestNamespace(this);
Nodes = new LowLevelNodesNamespace(this);
Expand Down

0 comments on commit c69105b

Please sign in to comment.