• Stars
    star
    172
  • Rank 213,997 (Top 5 %)
  • Language
    C#
  • Created over 9 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Elasticsearch .NET netstandard API

ElasticsearchCRUD NuGet Status

Documentation: http://damienbod.com/2014/09/22/elasticsearch-crud-net-provider/

Code: https://github.com/damienbod/ElasticsearchCRUD

NuGet Package: https://www.nuget.org/packages/ElasticsearchCRUD/

========================

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

Part 4: Data Transfer from MS SQL Server using Entity Framework to Elasticsearch

Part 5: MVC Elasticsearch with child, parent documents

Part 6: MVC application with Entity Framework and Elasticsearch

Part 7: Live Reindex in Elasticsearch

Part 8: CSV export using Elasticsearch and Web API

Part 9: Elasticsearch Parent, Child, Grandchild Documents and Routing

Part 10: Elasticsearch Type mappings with ElasticsearchCRUD

Part 11: Elasticsearch Synonym Analyzer using ElasticsearchCRUD

Part 12: Using Elasticsearch German Analyzer

Part 13: MVC google maps search using Elasticsearch

Part 14: Search Queries and Filters with ElasticsearchCRUD

Part 15: Elasticsearch Bulk Insert

Part 16: Elasticsearch Aggregations With ElasticsearchCRUD

Part 17: Searching Multiple Indices and Types in Elasticsearch

Part 18: MVC searching with Elasticsearch Highlighting

Part 19: Index Warmers with ElasticsearchCRUD

========================

Examples:

Using Elasticsearch with ASP.NET 5 dnxcore50

This examples shows how to do a simple search using ASP.NET 5 dnxcore

Simple autocomplete search

This examples shows how to do a simple search using an MVC application with jQuery autocomplete and Elasticsearch simple documents .

Using with NESTED documents (NEST for search)

This example uses Elasticsearch nested documents. The documents can be created, deleted, updated or searched for. The autocomplete search searches the documents as well as the nested objects.

Elasticsearch child, parent documents in a MVC application

This example uses Elasticsearch child/parent documents. All documents are saved inside the same index each with a different type. The child and parent documents are saved on the same shard. It is possible to do CRUD operations with all child documents or search for child/parent documents.

Data Transfer MS SQLServer 2014 With EntityFramework To Elasticsearch

This examples show how to transfer entities to documents in Elasticsearch. The entities are saved as nested documents.

MVC application with Entity Framework and Elasticsearch

This example demonstrates how to use Entity Framework as you primary database and Elasticsearch for the search in an MVC application. The application needs to create, update, delete documents in the search engine when ever Entity Framework changes, deletes or updates an entity.

Live Reindexing in Elasticsearch

This example shows how to do a live reindex in Elasticsearch. There is no downtime. The old index is accessed using an alias. The new index is created from the old index using scan and scroll and a document mapper. Then the alias to switched to access the new index. Then if required, the old index could be removed.

Web API CSV Export using Elasticsearch (scan and scroll)

This example shows how to export data from Elasticsearch ( _search scan and scroll) to Web API as a CSV file (using WebApiContrib.Formatting.Xlsx). The export is displayed in real time using SignalR. The example also provides a SignalR TraceProvider for ElasticsearchCRUD.

ConsoleElasticsearchCrudExample

A basic CRUD example.

ElasticsearchCRUD.Integration.Test

The integration tests shows lots of examples for ElasticsearchCRUD.

Damienbod.AnimalProvider

Example showing mapping configuration.

======================== History

Version 2.4.1.1

  • support for ASP.NET Core RTM
  • fixed, create index with mapping
  • updating type for edge_ngram

Version 2.3.1.1-RC2

  • support for ASP.NET Core RC2
  • updated to elasticsearch 2.3.1
  • fixed some bugs from previous versions
  • updated Json.NET

Version 2.0.2.1-rc1 2015.11.20

  • Support for ASP.NET 5 rc1, dnxcore50, and net451
  • Elasticsearch client bug fixes

Version 2.0.0-beta8 2015.11.17

  • Support for ASP.NET 5 dnxcore50 and dnx451

Version 2.0.0 2015.11.16

  • Support for Elasticsearch 2.0.0

Version 1.0.29.2 2015.03.16

  • bug fix, Id in Hit result should not be an int

Version 1.0.29 2015.02.13

  • support search highlighting requests in search model
  • support for search rescore
  • support for the _warmer API, PUT and DELETE
  • support warmers in Create Index
  • regexp filter, query max_determinized_states support version 1.4.3
  • bug fix, GeoDistanceSort GeoPoint field or array of geo_points is required and not optional

Version 1.0.28 2015.02.10

  • Indices Filter, Type Filter, Indices Query
  • bug fix Terms Aggregation Result properties not set
  • support search for multiple indices and types
  • Use type safe distance unit in geo Precision property

Version 1.0.27 2015.02.07

  • support for Aggregations Min Aggregation, Max Aggregation, Sum Aggregation, Avg Aggregation, Stats Aggregation, Extended Stats Aggregation, Value Count Aggregation, Percentiles Aggregation, Percentile Ranks Aggregation, Cardinality Aggregation, Geo Bounds Aggregation, Top hits Aggregation, Scripted Metric Aggregation, Global Aggregation, Filter Aggregation, Filters Aggregation, Filters Named Aggregation, Missing Aggregation, Nested Aggregation, Reverse nested Aggregation, Children Aggregation, Terms Aggregation, Significant Terms Aggregation, Range Aggregation, Date Range Aggregation, Histogram Aggregation, Date Histogram Aggregation, Geo Distance Aggregation, GeoHash grid Aggregation
  • Remove string conversion for _id field in bulk insert

Version 1.0.26 2015.01.24

  • Support for core type geometrycollection
  • Support for nested filter and query
  • Support mapping for nested objects
  • Added more search queries: Common Terms Query, Function Score Query, GeoShape Query, Has Child Query, Has Parent Query, Ids Query, More Like This Query, Nested Query, Prefix Query, Query String Query, Simple Query String Query, Regexp Query, Span First Query, Span Multi Term Query, Span Near Query, Span Not Query, Span Or Query, Span Term Query, Top Children Query, Wildcard Query

Version 1.0.25 2015.01.18

  • Support for search filters: And Filter, Bool Filter, Exists Filter, Geo Bounding Box Filter, Geo Distance Filter, Geo Distance Range Filter, Geo Polygon Filter, GeoShape Filter, GeoShape Indexed Filter, Geohash Cell Filter, Has Child Filter, Has Parent Filter, Ids Filter, Limit Filter, Match All Filter, Missing Filter, Not Filter, Or Filter, Prefix Filter, Query Filter, Range Filter, Regexp Filter, Script Filter, Term Filter, Terms Filter
  • support for sort
  • support for Filter in Alias
  • Support for Queries in Scan and Scroll,
  • support search objects
  • support for basic queries: Match Query, Multi Match Query, Bool Query, Boosting Query, Constant Score Query, Dis Max Query, Filtered Query, Fuzzy Like This Query, Fuzzy Like This Field Query, Fuzzy Query, Match All Query, Range Query, Term Query, Terms Query

Version 1.0.24 2015.01.05

  • Support for geo_point index and mapping
  • Support for geo_shape index and mapping
  • Spporting the following Geo Shape Types: point, linestring, polygon, multipoint, multilinestring, multipolygon, envelope, circle

Version 1.0.23 2015.01.02

  • Added search highlighting and refactored the hits results
  • Support for alias in create index
  • Added a missing const icu_tokenizer
  • Support for alias routing and filter parameters
  • Added _id attribute which can be used instead of the Key Data Annotations attribute

Version 1.0.22 2014.12.15

  • support for custom char_filters
  • support for custom similarity
  • added all DateTime format options

Version 1.0.21 2014.12.09

  • support for index Token filters, custom filters
  • support for index Tokenizers, custom tokenizers
  • support for index Analyzers, custom analyzers
  • support for _all and _source mappings
  • support for support analysis mappings, settings
  • support update index analysis settings
  • support for mapping Analyzer
  • refactored the search results to conform with the search API hits/hit etc

Version 1.0.20 2014.11.28

  • support optimize index
  • support close index
  • support open index
  • support update index settings
  • support CreateMapping for existing index
  • support specific routing in mappings

Version 1.0.19 2014.11.22

  • support for Delete mapping (Index Type)
  • support for sync delete index
  • bug fix: bool types should not require an [ElasticsearchBoolean] attribute to create mapping
  • DeleteDocument, add support/tests for explicit routed documents
  • IndexType Mapping fix for grandchild documents serialization

Version 1.0.18 2014.11.21

  • support for Elasticsearch Core Types mappings as Attribute definitions (string, float, double, byte, short, integer,long, date, boolean, binary)
  • support for similarity mappings
  • support copy_to mappings
  • support fields mappings (multi-fields)
  • support CreateIndex simple, nested or child/parent document with or without routing
  • support for auto init mapping, simple, nested or child/parent document with or without routing

Version 1.0.17 2014.11.14

  • Added support for search exists
  • Added support for document routing child/parent/grandchild or whatever
  • Used routing pro code configuration
  • Bug Fix Grandchildren documents are not always saved to the proper shard

Version 1.0.16 2014.11.09

  • Added live Reindex support for child parent indexes
  • Added support for index exists
  • Added support for Alias exists
  • Added support for IndexType exists
  • Add support for Exists with any URI
  • Fixed Console TraceProvider Bug

Version 1.0.14 2014.11.06

  • Added live Reindex support
  • Added index and indexType mapping utilities
  • Added console min trace level to ConsoleTraceLogger
  • Fix for scan and scroll implementation

Version 1.0.13 2014.11.05

  • Support for alias
  • Support for _search scan and scroll

Version 1.0.12 2014.10.31

  • Bug fix SearchById

Version 1.0.11 2014.10.29

  • Added ClearCache API support
  • Added HTTP Head request to test if a document exists DocumentExists
  • Added DeleteByQuery API support

Version 1.0.10 2014.10.25

  • Support for Elasticsearch Count API
  • Return hits/total in search results
  • Added code documentation and included in NuGet deployment
  • Removed search for child documents per parent

Version 1.0.9 2014.10.22

  • Added Get child document for parent Id method to context
  • Add SearchById method to context
  • Create a Child document possible
  • It is possible now to update, or index child documents which belong to a parent document
  • Added non-functional tests for child documents, parent documents
  • Added Search for child documents of a document
  • Added Search with Json String for type T
  • Initial Mappings for child parent type relationships
  • Using key attribute to identity ids

Version 1.0.8 2014.10.17

  • Support Collection of Objects Property in entity as child documents
  • Support Single Object Property in entity as child document
  • Support Array of Objects Property in entity as child documents
  • Add JsonIgnore Property Attribute for Elasticsearch
  • Add Configuration/Mapping for child Object definition NESTED or document
  • Bug Fix Only the first child object is processed if it is defined in a parent List

Version 1.0.7 2014.10.12

  • Bug in 1-n-m-1 mapping for EF entities
  • Added diagnostics for HttpClient Request and response
  • Added diagnostics for JsonWriter
  • Added Entity Framework Data Transfer Tests
  • Added Configuration to turn on/off Nested objects IncludeChildObjectsInDocument

Version 1.0.6 2014.10.12

  • Add support for Entity Framework dynamic proxy entities
  • Add Error Handling when child Entity has a reference to its parent Entity
  • support for HashSet properties
  • Exception Handling for M-N relationships, and circular relationships detection
  • Support for 1 to N Entity Framework entities

Version 1.0.5 2014.10.05

  • Support Array of Objects Property in entity as NESTED document
  • Support Collection of Objects Property in entity as NESTED documents
  • Support Single Object Property in entity as NESTED document
  • Support for simple type List properties as NESTED document
  • Support for simple type Array properties as NESTED document

Version 1.0.4 2014.10.02

  • sync / async methods added for CRUD
  • Better Error handling
  • Improvement Tracing, added System.Diagnostics Tracing support
  • More Tests
  • URL bug fix for GetEntity

Version 1.0.3 2014.09.30

  • sync save changes added
  • default mapping settings changed, lowercase for everything and index = plural

Version 1.0.2 2014.09.27

  • support for multiple Entity/Document Types
  • Error handling improvements
  • Delete index

Version 1.0.1 Support for single entity, initial version.

More Repositories

1

angular-auth-oidc-client

npm package for OpenID Connect, OAuth Code Flow with PKCE, Refresh tokens, Implicit Flow
TypeScript
988
star
2

AspNet6IdentityServer4AngularOidcFlows

OpenID Connect Code Flow PKCE / Implicit Flow with Angular and ASP.NET Core 6 IdentityServer4
TypeScript
725
star
3

AngularWebpackVisualStudio

Template for ASP.NET Core, Angular with Webpack and Visual Studio
JavaScript
486
star
4

IdentityServer4AspNetCoreIdentityTemplate

An ASP.NET Core 6.0 IdentityServer4 Identity Bootstrap 4 template with localization
C#
326
star
5

AspNetCoreLocalization

Localization.SqlLocalizer & ASP.NET Core MVC Localization Examples
C#
250
star
6

AspNetCoreHybridFlowWithApi

Different ASP.NET Core applications using OpenID Connect Hybrid flow Code Flow, Code Flow with PKCE, JWT APIs, MFA examples
C#
247
star
7

AspNetCoreMultipleProject

ASP.NET Core API EF Core and Swagger
C#
227
star
8

AspNetCoreOpeniddict

OpenIddict with Angular and Blazor WASM BFF OpenID Connect Code Flow with PKCE clients and ASP.NET Core APIs
C#
224
star
9

AspNetCoreCertificates

Certificate Manager in .NET Core for creating and using X509 certificates
C#
223
star
10

AspNetCoreAngularSignalRSecurity

Security with ASP.NET Core, SignalR and Angular
C#
214
star
11

AspNetCoreAngularSignalR

SignalR ASP.NET Core Angular
TypeScript
186
star
12

IdentityServer4VueJs

IdentityServer4 Vue.js oidc-client-js OpenID Connect code flow with PKCE
C#
124
star
13

AspNetCoreIdentityFido2Mfa

ASP.NET Core 7 Identity with FIDO2 WebAuthn MFA, passwordless
CSS
118
star
14

AspNetCoreWindowsAuth

Local and Windows Authentication, ASP.NET Core MVC, IdentityServer4
C#
118
star
15

AspNetCoreFileUploadFileTable

ASP.NET Core MVC file upload / download with MS SQL Server FileTable
C#
114
star
16

AspNetCoreServiceBus

ASP.NET Core with Azure Service Bus
C#
101
star
17

Secure_gRpc

Security Experiments with gRPC and ASP.NET Core 5
C#
92
star
18

aspnetcore-standup-authn-authz

https://www.youtube.com/watch?v=eQ7eLOA69T0
84
star
19

Blazor.BFF.OpenIDConnect.Template

Blazor.BFF.OpenIDConnect.Template, Blazor WASM hosted in ASP.NET Core using OpenID Connect BFF (server authentication)
CSS
80
star
20

AspNetCoreCsvImportExport

ASP.NET Core CSV import export custom formatters
C#
78
star
21

SendingEncryptedData

.NET Core Encryption
CSS
74
star
22

AspNetCoreID4External

external OpenID Connect Login to IdentityServer and ASP.NET Core with AAD
C#
72
star
23

AspNetCoreMvcVueJs

ASP.NET Core with Vue.js
C#
69
star
24

aspnetcore-standup-securing-apis

ASP.NET Core Community Standup Securing APIs
66
star
25

AspNetCoreNlog

ASP.NET Core NLog MS SQL Server PostgreSQL MySQL Elasticsearch
C#
59
star
26

AzureADAuthRazorUiServiceApiCertificate

Azure AD flows using ASP.NET Core and Microsoft.Identity
CSS
58
star
27

AspNetCoreMvcAngular

ASP.NET Core MVC with angular in MVC View OpenID Connect Hybrid Flow
C#
55
star
28

AspNetCoreOData

ASP.NET Core OData
C#
53
star
29

AspNetCoreIdentityServer4ResourceOwnerPassword

ASP.NET Core IdentityServer4 Resource Owner Flow Refresh token and custom user repository
CSS
51
star
30

AspNetCoreCertificateAuth

ASP.NET Core 3.1 Certificate Authentication Self Signed and Chained
C#
50
star
31

Blazor.BFF.AzureB2C.Template

Blazor.BFF.AzureB2C.Template, Blazor WASM hosted in ASP.NET Core using Azure B2C BFF (server authentication) and Microsoft Graph
CSS
47
star
32

AspNetCoreExperiments

ASP.NET Core Blazor BFF with Azure AD and Razor page
CSS
46
star
33

Blazor.BFF.AzureAD.Template

Blazor.BFF.AzureAD.Template, Blazor WASM hosted in ASP.NET Core using Azure AD BFF (server authentication)
CSS
45
star
34

ApiJwtWithTwoSts

Web API authorization, multi-IDP solutions in ASP.NET Core
C#
44
star
35

AspNetCoreElasticsearchNestAuditTrail

ASP.NET Core Elasticsearch Nest Audit Trial
C#
44
star
36

AzureAD-Auth-MyUI-with-MyAPI

Azure AD Auth with ASP.NET CORE UI and ASP.ENT Core API
PowerShell
42
star
37

SignalRMessagingErrorHandling

SignalR Messaging with Error Handling
C#
40
star
38

AspNetCoreMvcProtobufFormatters

ASP.NET Core MVC Protobuf Formatters (InputFormatter and OutputFormatter)
C#
38
star
39

WebApiFileUpload

Web API File Upload
C#
38
star
40

AspNet5GeoElasticsearch

ASP.NET Core MVC Geo Elasticsearch Swashbuckle Swagger
C#
37
star
41

AspNetCorePagesWebpack

ASP.NET Core Razor Pages Bootstrap 4 Application using Webpack, Typescript, and npm
C#
37
star
42

AspNetCoreFilters

ASP.NET Core MVC Filters
C#
34
star
43

AspNetCoreSQLite

ASP.NET Core 2.0 MVC SQLite Entity Framework Core
JavaScript
34
star
44

dotnet-template-angular

oidc azure-ad angular dotnet-template openid
TypeScript
34
star
45

AspNetCoreMvcSharedLocalization

ASP.NET Core MVC shared localization
C#
33
star
46

AspNetCoreQuartz

ASP.NET Core scheduling with Quartz.NET and SignalR
JavaScript
31
star
47

AspNetCoreYarp

ASP.NET Core & Yarp reverse proxy with Azure AD OIDC, OAuth2
C#
31
star
48

AspNetCoreApiAuthMultiIdentityProvider

ASP.NET Core Api Auth with multiple Identity Providers
C#
29
star
49

AngularLocalizationAspNetCore

Angular ASP.NET Core localization
C#
26
star
50

AngularAutoSaveCommands

ASP.NET Core, Angular, Angular CLI, MS SQL Server, Undo, Redo, Auto save
C#
24
star
51

AzureFunctionsSecurity

Azure Functions Security
C#
24
star
52

angular-auth-oidc-sample-google-openid

Angular oidc client with google Identity OpenID
JavaScript
23
star
53

Angular2AutoCompleteAspNetCoreElasticsearch

Angular autocomplete, ASP.NET Core, Elasticsearch
C#
23
star
54

SignalRMessaging

JavaScript
22
star
55

AspNetCoreIdentityServer4Angular2Docker

C#
22
star
56

AspNetCorePostgreSQLDocker

ASP.NET Core Docker EF Core
C#
22
star
57

AspNetCoreIdentityServer4Persistence

EF Core database for the IdentityServer4 configuration data
C#
22
star
58

azureb2c-fed-azuread

Securing ASP.NET Core Razor Pages, Web APIs with Azure B2C external and Azure AD internal identities
C#
22
star
59

AspNet5Watcher

ASP.NET Core MVC 6 Elasticsearch watcher SignalR example
JavaScript
21
star
60

SeparatingApisPerSecurityLevel

Auth0, ASP.NET Core OAuth, OIDC
C#
21
star
61

AnimalMarketEnginsSqliteDb

ASP.NET Web API with SQLite
C#
20
star
62

WebAPIODataV4

C#
19
star
63

TeamsAdminUI

ASP.NET Core Razor Page app using Graph API to create team meetings, send emails
C#
18
star
64

AspNetCoreBackChannelLogout

ASP.NET Core Back-Channel Logout for Hybrid Clients, Redis, Key Vault, Azure
C#
18
star
65

Auth0AngularAspNetCoreApi

Auth0 with Angular and an ASP.NET Core API
TypeScript
17
star
66

AspNetCoreMicrosoftGraph

ASP.NET Core application and API using Microsoft Graph delegated clients
C#
15
star
67

AspNetCoreBlazorMicrosoftGraph

ASP.NET Core Blazor with Microsoft Graph
CSS
15
star
68

WebAPILocalization

C#
14
star
69

WebApi2AttributeFilters

C#
14
star
70

AngularComponentPlotly

Angular Component for Plotly, ASP.NET Core, Elasticsearch
TypeScript
14
star
71

AspNetCoreBootstrap4Validation

ASP.NET Core MVC Bootstrap 4 Ajax
CSS
13
star
72

AspNetCoreTenantSelect

Switch tenants in an ASP.NET Core app using Azure AD with multi tenants
C#
12
star
73

AspNetCoreAzureSearch

ASP.NET Core with Azure Cognitive Search
C#
12
star
74

AspNet5SearchWithElasticsearchCrud

ASP.NET Core MVC Elasticsearch dnxcore50
C#
12
star
75

WebSearchWithElasticsearchEntityFrameworkAsPrimary

JavaScript
12
star
76

WebSearchWithElasticsearch

CSS
12
star
77

PwaBlazorBffAzureB2C

Azure B2C Blazor BFF ASP.NET Core hosted with support for PWA
CSS
12
star
78

SharedAspNetCore

demo sharing controller and Razor Pages in a shared aseembly, project
C#
12
star
79

AspNetCoreAzureAdAzureStorage

ASP.NET Core Razor page with uses Azure Storage to upload download files securely using OAuth and Open ID Connect
C#
12
star
80

ElasticsearchBulkInsert

C#
11
star
81

DataTransferSQLWithEntityFrameworkToElasticsearch

C#
11
star
82

WebApiFileUploadFileTable

C#
11
star
83

SQLiteExamples

C#
11
star
84

WiXPowerShellExample

C#
11
star
85

PoCWindowsAuth

Securing an ASP.NET Core app and web API using windows authentication
CSS
11
star
86

AspNetCoreHangfire

ASP.NET Core with Hangfire
TSQL
11
star
87

AspNetCoreWebApiContribProtobufSample

ASP.NET Core Protobuf API Formatters
C#
10
star
88

AspNetCoreAzureADCAE

Azure AD Continuous Access in an ASP.NET Core Razor Page, Blazor app using a Web API
C#
10
star
89

AzureDurableFunctions

Using External Inputs in Azure Durable functions
C#
10
star
90

EmailCalandarsClient

Send emails with Microsoft Graph API from a Desktop APP, C# and Visual basic projects
C#
9
star
91

WebAppGeoElasticsearch

MVC google maps search using Elasticsearch
JavaScript
8
star
92

AspNetCoreIISDeployment

Demo project used for ASP.NET Core IIS deployment
C#
8
star
93

AspNetCoreVS2017Docker

ASP.NET Core Docker VS2017
C#
8
star
94

ElasticsearchParentChildGrandChild

Console app demo for Elasticsearch Parent Child GrandChild routing
C#
8
star
95

SignalRHostWithUnity

C#
8
star
96

AspNet5AngularJSDynamicRoutes

ASP.NET Core Angular-UI-Router example
JavaScript
8
star
97

WebApiCSVExportFromElasticsearch

C#
8
star
98

WebApiParameters

C#
8
star
99

OnBehalfFlowOidcDownstreamApi

This demo shows how to implement the On Behalf Of flow between an Azure AD protected API and an API protected using OpenIddict.
C#
8
star
100

MvcDynamicDropdownList

aspnet-core mvc razor javascript
C#
8
star