This article shows how to setup an Elasticsearch index with an alias and bulk insert a lot of documents. When bulk inserting lots of documents, it improves performance by turning off the refresh interval (RefreshInterval = “-1”) and turning off replication. When the insert is finished, these settings are set to the required values depending […]
This article demonstrates how to do searches with ElasticsearchCRUD. The API provides a search model which can be used with the search API from Elasticsearch. You can search both sync/async and also provide you own JSON string or use the search model. Lots of examples can be found here: https://github.com/damienbod/ElasticsearchCRUD/tree/master/src/ElasticsearchCRUDNUnit.Integration.Test Other Tutorials: Part 1: ElasticsearchCRUD […]
This article shows how to create an MVC application which uses google maps and Elasticsearch to do a geo_distance search and find the closest point (document) to your location. The Elasticsearch index uses a geo_point to define the location of each document. Elasticsearch supports GeoJson formats. Code: https://github.com/damienbod/WebAppGeoElasticsearch Other Tutorials: Part 1: ElasticsearchCRUD introduction Part […]
The article explains how to use Elasticsearch’s default German analyzer. An index using ElasticsearchCRUD, is created which maps a field using the german analyzer for both search and also indexing. Code: https://github.com/damienbod/ElasticsearchGermanAnalyzer Other Tutorials: Part 1: ElasticsearchCRUD introduction Part 2: MVC application search with simple documents using autocomplete, jQuery and jTable Part 3: MVC Elasticsearch […]
This article shows how to setup and use a custom analyzer in Elasticsearch using ElasticsearchCRUD. An analyzer with a custom Synonym Token Filter is created and added to the index. If you search for any of the synonyms, you will find all the hits for all the possible texts. Code: https://github.com/damienbod/ElasticsearchSynonymAnalyzer Other Tutorials: Part 1: […]
This article shows how to define mappings for types in Elasticsearch using ElasticsearchCRUD. The Core Types definitions in Elasticsearch can be defined using attributes with ElasticsearchCRUD. Code: https://github.com/damienbod/ElasticsearchCrudTypeMappingsExample Other Tutorials: Part 1: ElasticsearchCRUD introduction Part 2: MVC application search with simple documents using autocomplete, jQuery and jTable Part 3: MVC Elasticsearch CRUD with nested documents […]
This article shows how to create parent, child and grandchild documents in Elasticsearch using ElasticsearchCRUD. If creating documents which are related to each other, it is important that the documents are all saved to the same shard in Elasticsearch. The search performance is better, if a specific shard can be defined for the search. When […]
The article demonstrates how to do a live reindex in Elasticsearch using ElasticsearchCRUD. The reindex uses scan ans scroll the fetch the data and then updates to a new index using bulk inserts. The reindex has support for alias mapping which makes it possible to do a live index. Code: https://github.com/damienbod/LiveReindexInElasticsearch Other tutorials: Part 1: […]
This article demonstrates how to use Entity Framework with MS SQL Server as a primary database and Elasticsearch for the search/select functionality. The application combines the power and performance of Elasticsearch for search and fast selects and also Entity Framework for CUD transactions (Create, Update and Delete). Code: https://github.com/damienbod/WebSearchWithElasticsearchEntityFrameworkAsPrimary Other tutorials: Part 1: ElasticsearchCRUD introduction […]
