Tag Archives: Elasticsearch

Using Elasticsearch Watcher to create data events in ASP.NET Core 1.0 MVC 6

This article shows how to setup Elasticsearch Watcher in Elasticsearch to call an MVC controller in an ASP.NET 5 application. The controller action method will handle these events in part 3 of this blog series. Code: https://github.com/damienbod/AspNet5Watcher 2015.09.20: Updated to ASP.NET Core 1.0 beta 7 2015.10.20: Updated to ASP.NET Core 1.0 beta 8 2015.11.18: Updated […]

An ASP.NET Core 1.0 AngularJS application with Elasticsearch, NEST and Watcher

This article shows how to create an Angular application using ASP.NET Core 1.0 which can create alarm documents in Elasticsearch using NEST. The repository layer uses the new configuration from the beta 6 version and also the built in DI from the ASP.NET Core 1.0 framework. The post is part 1 of a three part […]

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

Elasticsearch Bulk Insert

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

Search Queries and Filters with ElasticsearchCRUD

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

MVC google maps search using Elasticsearch

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

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