Tag Archives: Lucene

Index Warmers with ElasticsearchCRUD

This article shows how to use index warmers with ElasticsearchCRUD. Warmers are useful for the most used queries, and can help with performance. A warmer can be added when creating an index, added any time after or deleted from an index. Warmers can also be added globally or per index type. Code: https://github.com/damienbod/ElasticsearchWarmers Other Tutorials: […]

MVC 6 ASP.NET 5 full text search with Elasticsearch (dotnet .NETCoreApp 1.0 )

This tutorial shows how to create an MVC 6 ASP.NET Core application (dotnet .NETCoreApp 1.0) which does a full text search using Elasticsearch. This application uses jQuery-UI to send the search requests and ElasticsearchCRUD (pre-release version) to send the requests to Elasticsearch. ElasticsearchCRUD supports dnxcore50 and netstandard 1.4. The source code can be found in […]

Searching Multiple Indices and Types in Elasticsearch

This article shows how to do searches across multiple indices and types in Elasticsearch using ElasticsearchCRUD. Elasticsearch provides an Indices Filter, a Type Filter, and an Indices Query which can be used when working with multiple indices and types. Aggregations searches and Count requests can also be executed using multiple indices, types. Code: https://github.com/damienbod/ElasticsearchParentChildGrandChild Other […]

Elasticsearch Aggregations With ElasticsearchCRUD

This article shows how to implement Elasticsearch aggregation search requests and responses using ElasticsearchCRUD. Code: https://github.com/damienbod/AggregationExamplesWithElasticsearchCRUD The Elasticsearch Aggregation Examples contains integration tests which shows how to use all the different type of aggregations in ElasticsearchCRUD. Other Tutorials: Part 1: ElasticsearchCRUD introduction Part 2: MVC application search with simple documents using autocomplete, jQuery and jTable […]

Using Elasticsearch German Analyzer

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

Live Reindex in Elasticsearch

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

MVC application with Entity Framework and Elasticsearch

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

MVC CRUD with Elasticsearch child, parent documents

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

Transferring data to Elasticsearch from MS SQL Server using ElasticsearchCRUD and Entity Framework

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

MVC CRUD with Elasticsearch NESTED documents

This article demonstrates how to create Elasticsearch documents with NESTED objects using jQuery, jTable and moment.js in the MVC Razor View, and using MVC, ElasticsearchCRUD and Elasticsearch as the backend. The SearchController provides all CRUD Actions so you can experiment with the 1 to n entities, or the Elasticsearch nested documents. Not all Elasticsearch clients […]