ElasticSearch with .NET Core
Introduction
Working with NoSQL persistence simplifies a lot of things when building applications. You can build persistence functionalities from scratch or you can use an already available solution like elastic-search or combine the both.
In this post, I will show how to store JSON documents to ElasticSearch and then later leverage its REST API and DSL to perform various searches/queries easily using .NET Core.
I have previously written few posts about elasticsearch and/or document databases. You can find the links in reference section, if you want to refresh some background information about those topics.
What is ElasticSearch
Elasticsearch is a search engine based on the Lucene library. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents. Elasticsearch is developed in Java.
There are client libraries available for different languages e.g. Node.js, .NET Core etc. I’ve written some posts about ElasticSearch and NoSQL databases you can find in reference section.
What is a document
Documents are essentially a set of key-value pair.