Sylin.Koan.Data.SearchEngine 0.17.0

dotnet add package Sylin.Koan.Data.SearchEngine --version 0.17.0
                    
NuGet\Install-Package Sylin.Koan.Data.SearchEngine -Version 0.17.0
                    
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="Sylin.Koan.Data.SearchEngine" Version="0.17.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sylin.Koan.Data.SearchEngine" Version="0.17.0" />
                    
Directory.Packages.props
<PackageReference Include="Sylin.Koan.Data.SearchEngine" />
                    
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 Sylin.Koan.Data.SearchEngine --version 0.17.0
                    
#r "nuget: Sylin.Koan.Data.SearchEngine, 0.17.0"
                    
#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 Sylin.Koan.Data.SearchEngine@0.17.0
                    
#: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=Sylin.Koan.Data.SearchEngine&version=0.17.0
                    
Install as a Cake Addin
#tool nuget:?package=Sylin.Koan.Data.SearchEngine&version=0.17.0
                    
Install as a Cake Tool

Koan.Data.SearchEngine

Shared support for the search-engine vector connectors — Koan.Data.Connector.ElasticSearch and Koan.Data.Connector.OpenSearch. Both engines are built on Apache Lucene and speak the same query DSL, so the metadata-filter translation lives here once instead of being duplicated per adapter. The package is named for the engine category (the same convention as Koan.Data.Relational), so the dependency reads clearly without Lucene-internals knowledge.

  • SearchEngineFilterTranslator — the single source of truth for translating the unified Filter AST into the Elasticsearch/OpenSearch query DSL, plus the one VectorFilterCapabilities constant both adapters expose.

Capabilities

  • Translate the unified Filter AST → the search-engine query DSL (term/terms/range/wildcard/ bool/exists).
  • One operator-aware VectorFilterCapabilities value shared by both adapters.
  • Null-inclusive negation (Ne/Nin/HasNone) via Lucene bool/must_not.

Usage

Each connector calls the shared translator, passing its own engine label so a not-supported error names the right adapter:

var query = SearchEngineFilterTranslator.TranslateWhereClause(
    options.Filter, metadataField, engine: "Elasticsearch");

Notes:

  • The engine label only personalizes not-supported exception messages; the translation is identical.
  • The repositories stay separate (their REST/transport wiring differs); only the translation and the capability constant are shared.

References

  • Vector pathway + filter model: ~/decisions/DATA-0097-vector-pathway-parity.md
  • Embedding↔vector seam (§10.4, the ES/OS shared base): ~/decisions/AI-0036-embedding-vector-seam.md
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 (2)

Showing the top 2 NuGet packages that depend on Sylin.Koan.Data.SearchEngine:

Package Downloads
Sylin.Koan.Data.Connector.ElasticSearch

Elasticsearch vector adapter for Koan: index provisioning, kNN search, metadata filtering and health checks via the Elasticsearch REST API.

Sylin.Koan.Data.Connector.OpenSearch

OpenSearch vector adapter for Koan: index provisioning, kNN search, metadata filtering and health checks via the OpenSearch REST API.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.17.0 0 6/12/2026