Elasticsearch .NET 8 API: Query Filters (Match, Terms, Range) / Clean Architecture

Опубликовано: 23 Май 2026
на канале: Code & Cris
509
10

GitHub Repo: https://github.com/CrisAlex-990214/El...
Install Elasticsearch With Docker On Windows:    • Install Elasticsearch with Docker on Windo...  
What Is Clean Architecture? (.NET Initial Setup):    • What Is Clean Architecture? (Initial .NET ...  

Kibana Sample Data
POST _bulk
{ "create" : { "_index" : "product" } }
{"name":"SSS Shoe","brand":"SSS","colors": ["Black","White"],"price":25}
{ "create" : { "_index" : "product" } }
{"name":"JJJ Shoe","brand":"JJJ","colors": ["Red","White"],"price":30}

Timeline
0:00 - Intro
0:32 - Credentials & NuGet Package
1:06 - Register the ElasticClient
3:10 - Implement the Generic Filter
5:48 - Product, FilterDto models
6:54 - Build Product Filter
11:09 - Add Sample Data
11:32 - Run And Test!