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 […]

This article demonstrates how to export data from Elasticsearch to a CSV file using Web API. The data is retrieved from Elasticsearch using _search with scan and scroll. This API can retrieve data very fast without any sorting. The data is then exported to a CSV file using WebApiContrib.Formatting.Xlsx from Jordan Gray. The progress of […]

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 […]

This article demonstrates how to search for data in Elasticsearch using parent and child documents. The documents are all saved inside the same index and the child documents are saved on the same shard using the parent id as the routing. As in the previous ElasticsearchCRUD tutorials, an autocomplete in used to search for the […]

This article shows how to transfer data from a MS SQL Server 2014 to Elasticsearch. The MS SQL Server is accessed using Entity Framework (Code first from a database). Elasticsearch documents are created using ElasticsearchCRUD and inserted in bulk requests. The Entity Framework entities can be used directly in ElasticsearchCRUD. Either the whole entity including […]

Follow

Get every new post delivered to your Inbox.

Join 52 other followers