Skip to content

Latest commit

 

History

History
84 lines (63 loc) · 2.84 KB

README.md

File metadata and controls

84 lines (63 loc) · 2.84 KB

OpenSearch logo

OpenSearch .NET Client

Welcome!

opensearch-net is a community-driven, open source fork of elasticsearch-net licensed under the Apache v2.0 License. For more information, see opensearch.org.

OSC is a community-driven, open source fork of elasticsearch-net high level client NEST licensed under the Apache v2.0 License. For more information, see opensearch.org.

Project Resources

OSC is the official high-level .NET client of OpenSearch.

Getting Started

Include OSC in your .csproj file.

<Project>
  ...
  <ItemGroup>
    <ProjectReference Include="..\opensearch-net\src\Osc\Osc.csproj" />
  </ItemGroup>
</Project>

Connecting to a single node

var node = new Uri("http://myserver:9200");
var settings = new ConnectionSettings(node);
var client = new OpenSearchClient(settings);

A low-level, dependency free client that has no opinions how you build and represent your requests and responses.

Getting Started

Include OpenSearch.Net in your .csproj file.

<Project>
  ...
  <ItemGroup>
    <ProjectReference Include="..\opensearch-net\src\OpenSearch.Net\OpenSearch.Net.csproj" />
  </ItemGroup>
</Project>

Connecting

var node = new Uri("http://myserver:9200");
var config = new ConnectionConfiguration(node);
var client = new OpenSearchLowLevelClient(config);

Code of Conduct

This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact [email protected] with any additional questions or comments.

License

This project is licensed under the Apache v2.0 License.

Copyright

Copyright OpenSearch Contributors. See NOTICE for details.