Zymergi.Search.Elastic 11.0.6-alpha

This is a prerelease version of Zymergi.Search.Elastic.
dotnet add package Zymergi.Search.Elastic --version 11.0.6-alpha
                    
NuGet\Install-Package Zymergi.Search.Elastic -Version 11.0.6-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Zymergi.Search.Elastic" Version="11.0.6-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zymergi.Search.Elastic" Version="11.0.6-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Zymergi.Search.Elastic" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Zymergi.Search.Elastic --version 11.0.6-alpha
                    
#r "nuget: Zymergi.Search.Elastic, 11.0.6-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Zymergi.Search.Elastic@11.0.6-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Zymergi.Search.Elastic&version=11.0.6-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Zymergi.Search.Elastic&version=11.0.6-alpha&prerelease
                    
Install as a Cake Tool

Zymergi.Search.Elastic

Elasticsearch implementation of the engine-neutral faceted-search contracts defined in Zymergi.Core (namespace Zymergi.Search). Application code depends on the neutral contracts (ISearchProvider<TDocument>, ISearchIndexer<TDocument>, IIndexManager) and never references Elasticsearch directly.

Depends on: Zymergi.Core

Why This Project Exists

Zymergi.Core defines the neutral search surface: a filter AST (IFilter), facet requests, sort, paging, and a SearchCapabilities feature-detection record. This project translates that surface to the Elasticsearch query DSL and projects _search responses back onto the neutral result types. Elasticsearch supports every contract feature, so its SearchCapabilities reports all capabilities as available with exact total counts. This includes recency (SupportsRecency = true): when a request carries a RecencyBoost and no explicit sort, the query is wrapped in a function_score exp-decay (origin: now, scale = HalfLife, decay: 0.5, boost_mode: multiply) so newer documents score higher. An explicit Sort takes precedence.

Types (Provider/)

Type Purpose
ElasticSearchProvider<TDocument> Read side. Builds the query DSL, POSTs to /{index}/_search, and parses hits, facets, highlights, and total (via track_total_hits).
ElasticSearchIndexer<TDocument> Write side. Uses _bulk for index/delete (surfacing item-level errors), _delete_by_query for clear, and refreshes after writes so changes are searchable.
ElasticIndexManager Index lifecycle. Translates an IndexDefinition into Elasticsearch mappings on create.
ElasticQueryBuilder Stateless SearchRequest → ES DSL translator: bool query, filter AST, facet aggregations, sort, _source, and highlight.
ElasticSearchServiceCollectionExtensions AddElasticSearch(config) (named client + IIndexManager) and AddElasticSearchIndex<TDocument>(index, keySelector) (per-index provider + indexer).

Disjunctive Facets

A disjunctive (multi-select) terms facet must ignore its own field's filter. The builder emits it as a global aggregation → filter sub-aggregation whose filter is the request AST with that field's leaves removed → the facet aggregation, so the facet's counts reflect every filter except its own.

Configuration

{
  "Elasticsearch": {
    "ConnectionString": "https://user:password@host:9200"
  }
}
services
    .AddElasticSearch(configuration)
    .AddElasticSearchIndex<ArticleSearchDocument>("articles", d => d.Id);
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.6-alpha 101 7/10/2026
11.0.5-alpha 69 7/9/2026
11.0.4-alpha 69 7/6/2026
11.0.3-alpha 66 7/6/2026
11.0.2-alpha 110 6/30/2026
11.0.1-alpha 116 6/30/2026
11.0.0-alpha 88 6/29/2026