Kentico.Xperience.Lucene 12.4.0

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

Xperience by Kentico Lucene

7-day bug-fix policy CI: Build and Test

Package
Lucene NuGet Package
Lucene Administration only NuGet Package
Lucene Live site only NuGet Package

Description

Xperience by Kentico search integration with the latest 4.8 beta version of Lucene.NET, enabling auto-indexing of content in Xperience based on application-local, code-defined search indexes and search results retrieval.

This repository contains projects for 3 NuGet packages, that is Kentico.Xperience.Lucene.Admin, Kentico.Xperience.Lucene.Core and Kentico.Xperience.Lucene.

Use Kentico.Xperience.Lucene. This is the recommended version for usage of Xperience by Kentico support for Lucene .NET NuGet package and unlike the other two contains full support for both admin ui and live site.

Use Kentico.Xperience.Lucene.Core in your Xperience by Kentico project for Lucene Search in your live website. Use Kentico.Xperience.Lucene.Admin in your Xperience by Kentico Administration project for Lucene Search Administration UI managment.

Important Compatibility Notice
This Lucene integration requires persistent file system access to store and manage indexes. It is not compatible with Kentico Xperience SaaS, which restricts file system access. If you plan to run this in the cloud, ensure your environment supports persistent disk writes — such as a self-hosted VM, container with mounted volume, or a traditional server.

Screenshots

Search results

Index listing

Index edit

Library Version Matrix

Xperience Version Library Version
>= 30.6.0 >= 12.4.0
>= 30.5.1 >= 12.3.0
>= 30.0.1 >= 11.0.1
>= 30.0.0 >= 11.0.0
>= 29.3.3 >= 8.1.0
>= 29.0.0 >= 6.1.x
>= 28.4.3, < 29.0.0 >= 5.x.x
>= 28.0.0 >= 3.x.x
>= 26.2.0, < 27.0.0 >= 2.x, < 3.x.x

Dependencies

Package Installation

Add the package to your application using the .NET CLI

dotnet add package Kentico.Xperience.Lucene

Quick Start

This section is relevant for each Lucene NuGet. Steps number 3 and 4 are only relevant if you use NuGet package Kentico.Xperience.Lucene or Kentico.Xperience.Lucene.Admin.

  1. Define a custom DefaultLuceneIndexingStrategy implementation to customize how content pages/content items are processed for the index.

  2. Add this library to the application services, registering your custom DefaultLuceneIndexingStrategy and Lucene

    // Program.cs
    
    // Registers all services and uses default indexing behavior (no data is indexed)
    services.AddKenticoLucene();
    
    // or
    
    // Registers all services and enables custom indexing behavior
    services.AddKenticoLucene(builder =>
       builder
          .RegisterStrategy<GlobalSearchIndexingStrategy>("DefaultStrategy")
          .RegisterStrategy<ArticlesSearchIndexingStrategy>("ArticlesStrategy"));
    
  3. Create an index in Xperience's Administration within the Search application added by this library.

  4. Rebuild the index in Xperience's Administration within the Search application added by this library.

  5. Use the ILuceneSearchService (via DI) to retrieve the index populated by your custom ILuceneIndexingStrategy.

  6. Execute a search with a customized Lucene Query (like the MatchAllDocsQuery) using the ILuceneSearchService.

  7. Display the results on your site with a Razor View 👍.

Full Instructions

View the Usage Guide for more detailed instructions.

You can view and start the DancingGoat example project. For advanced Strategy usage add your website url base to the WebCrawlerBaseUrl appsettings.json

{
  // Other settings ...
  // Our example runs on localhost with port: 58093
  "WebCrawlerBaseUrl": "http://localhost:58093/"
}

This is required for our Scraping example.

Projects

Project Description
src/Kentico.Xperience.Lucene Xperience by Kentico Lucene integration library
src/Kentico.Xperience.Lucene.Core Xperience by Kentico Lucene integration Live site only library
src/Kentico.Xperience.Lucene.Admin Xperience by Kentico Lucene integration Admin only library
examples/DancingGoat Example project to showcase basic search functionality

Contributing

To see the guidelines for Contributing to Kentico open source software, please see Kentico's CONTRIBUTING.md for more information and follow the Kentico's CODE_OF_CONDUCT.

Instructions and technical details for contributing to this project can be found in Contributing Setup.

License

Distributed under the MIT License. See LICENSE.md for more information.

Support

7-day bug-fix policy

This project has Full support by 7-day bug-fix policy.

See SUPPORT.md for more information.

Security

For any security issues see Kentico's SECURITY.md.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
12.4.0 637 6/16/2025
12.3.1 338 6/9/2025
12.3.0 351 5/29/2025
12.2.3 285 5/23/2025
12.2.2 208 5/20/2025
12.2.1 601 5/13/2025
12.2.0 232 5/6/2025
12.1.0 1,698 4/11/2025
12.0.0 3,043 2/24/2025
11.0.1 1,784 1/23/2025
11.0.0 3,292 12/19/2024
10.0.0 4,406 10/29/2024
9.0.1 1,148 10/9/2024
9.0.0 1,111 9/4/2024
8.1.0 701 8/20/2024
8.0.0 348 8/14/2024
7.0.2 637 7/12/2024
7.0.1 957 6/4/2024
7.0.0 1,032 5/6/2024
6.1.0 1,410 4/22/2024
6.0.0 179 4/19/2024
6.0.0-prerelease-1 103 4/18/2024
5.0.0 387 4/10/2024
5.0.0-prerelease-1 102 4/10/2024
4.2.0 316 3/25/2024
4.1.0 922 2/1/2024
4.1.0-prerelease-4 117 1/31/2024
4.1.0-prerelease-3 106 1/31/2024
4.1.0-prerelease-2 98 1/31/2024
4.1.0-prerelease-1 102 1/31/2024
4.0.0 218 1/17/2024
3.0.0 179 1/12/2024
3.0.0-v28preview-3 104 1/12/2024
3.0.0-v28preview-2 106 1/12/2024
3.0.0-v28preview 124 12/21/2023
2.0.1 262 9/22/2023
2.0.0 222 9/12/2023
1.0.0 218 8/15/2023
1.0.0-prerelease-1 196 8/2/2023