Kck.Search.Abstractions 3.4.0

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

Kck.Search.Abstractions

Full-text search abstractions with index management — ISearchService<T> for create/delete index, document CRUD, bulk indexing, and query operations backed by the Elasticsearch provider.

Installation

dotnet add package Kck.Search.Abstractions

Quick Start

// Program.cs — register a concrete provider (e.g. Kck.Search.Elasticsearch)
builder.Services.AddKckElasticsearch(builder.Configuration);

// Use ISearchService<T> in a service
public class ProductSearchService(ISearchService<ProductDocument> search)
{
    public async Task IndexProductAsync(Product product, CancellationToken ct)
    {
        var doc = new ProductDocument(product.Id, product.Name, product.Description);
        await search.IndexAsync(doc, indexName: "products", ct);
    }

    public async Task<IReadOnlyList<ProductDocument>> SearchAsync(
        string query, CancellationToken ct)
    {
        var request = new SearchRequest
        {
            Query     = query,
            IndexName = "products",
            PageSize  = 20,
            PageIndex = 1
        };
        var result = await search.SearchAsync(request, ct);
        return result.Items;
    }

    public async Task BulkIndexAsync(
        IEnumerable<ProductDocument> docs, CancellationToken ct)
        => await search.BulkIndexAsync(docs, indexName: "products", ct);
}

Configuration

Property Description Default
Search:Elasticsearch:Uri Elasticsearch node URI "http://localhost:9200"
Search:Elasticsearch:DefaultIndex Fallback index name "default"
Search:Elasticsearch:NumberOfShards Shards per created index 1
Search:Elasticsearch:NumberOfReplicas Replicas per created index 1

Resources

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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Kck.Search.Abstractions:

Package Downloads
Kck.Search.Elasticsearch

Elastic.Clients.Elasticsearch 9.x-backed ISearchService<T> for full-text search. Supports index lifecycle (create/delete/exists), document CRUD, bulk indexing, and query operations. Requires Elasticsearch 9.x server. Registered via AddKckSearchElasticsearch<T>().

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.4.0 127 5/17/2026
3.3.0 117 5/17/2026
3.2.0 124 5/17/2026
3.1.0 116 5/17/2026
3.0.0 127 5/17/2026
2.0.0 122 5/7/2026