https://github.com/nikiforovall/elasticsearch-dotnet-playground
This playground is a collection of notebooks that demonstrate how to use Elasticsearch.NET and NEST clients.
https://github.com/nikiforovall/elasticsearch-dotnet-playground
elasticsearch elasticsearch-client elasticsearch-net jyputer-notebook nest polyglot-notebooks
Last synced: 5 months ago
JSON representation
This playground is a collection of notebooks that demonstrate how to use Elasticsearch.NET and NEST clients.
- Host: GitHub
- URL: https://github.com/nikiforovall/elasticsearch-dotnet-playground
- Owner: NikiforovAll
- License: mit
- Created: 2024-09-07T11:20:44.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-02T18:19:51.000Z (8 months ago)
- Last Synced: 2025-02-01T14:14:01.029Z (5 months ago)
- Topics: elasticsearch, elasticsearch-client, elasticsearch-net, jyputer-notebook, nest, polyglot-notebooks
- Language: Jupyter Notebook
- Homepage:
- Size: 10.8 MB
- Stars: 14
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Elasticsearch .NET Playground
This playground is a collection of notebooks that demonstrate how to use `Elastic.Clients.Elasticsearch` and `NEST` clients.
You may want to use this playground to:
* Learn more about `Elastic.Clients.Elasticsearch` and `NEST` clients
* You want to migrate your existing code from `NEST` to `Elastic.Clients.Elasticsearch`.> See [playground.ipynb](./src/nest-vs-elasticsearch/playground.ipynb) to get started.

## Configure
To configure the playground, set the `PLAYGROUND_CONNECTION_STRING=https://elastic:[email protected]:9200/` in .env file in the root of the project. If you don't do it, you will be prompted to enter the connection string every time you set up the client
## Analyzer [](https://github.com/NikiforovAll/elasticsearch-dotnet-playground/actions/workflows/build.yaml)
This repository contains [Nall.NEST.MigtarionAnalyzer](https://www.nuget.org/packages/Nall.NEST.MigtarionAnalyzer) analyzer that helps with migration from `Nest` to `Elastic.Clients.Elasticsearch`.
```bash
dotnet add package Nall.NEST.MigtarionAnalyzer --version 1.2.0
```## Devcontainer
You can use the devcontainer to get started with the playground. It will install the required tools and libraries.
> See [.devcontainer/devcontainer.json](./.devcontainer/devcontainer.json) to get started.
This command will confirm that Jupyter now supports C# notebooks:
```bash
jupyter kernelspec list
```Enter the notebooks folder, and run this to launch the browser interface:
```bash
jupyter-lab
```## References
* Elasticsearch.NET (latest) -
* Migration Guide -
* Elasticsearch.NET -
* NEST + Elasticsearch.NET in one doc -
* .NET Interactive | Samples -
* .NET Interactive -
* Elasticsearch Labs
*
*
*