This integration enables you to create Typesense search collections to collection content of pages (content types with the 'Page' feature enabled) from the Xperience content tree using a code-first approach. To provide a search interface for the collectioned content, developers can use the .NET API, JavaScript API, or the InstantSearch.js library.
Be aware that this integration has been developed by delaware consulting and is not an official Kentico product.
Xperience Version | Library Version |
---|---|
>= 29.0.0 | >= 4.1.0 |
28.x | >= 3.x |
>= 26.2.0, < 27.0.0 | 2.x |
Add the package to your application using the .NET CLI
dotnet add package Kentico.Xperience.Typesense
-
Add configuration from your Typesense account to the ASP.NET Core
appsettings.json
file:"CMSTypesenseSearch": { "ApiKey": "<your collectioning API key>", "Node": { "Host": "<your typesense host (localhost)>", "Port": <your typesense port (8108)>, "Protocol": "<your typesense protocol (http)>" } },
-
Define a custom
DefaultTypesenseCollectionStrategy
implementation to customize how content pages/content items are processed for the collection. SeeCustom-collection-strategy.md
-
Add this library to the application services, registering your custom
DefaultTypesenseCollectionStrategy
and Typesense services// Program.cs services.AddKenticoTypesense(configuration); services.RegisterStrategy<GlobalTypesenseCollectionStrategy>("DefaultStrategy");
-
Create an collection in Xperience's Administration within the Search application added by this library.
-
Rebuild the collection in Xperience's Administration within the Search application added by this library.
-
Display the results on your site with a Razor View 👍 .
View the Usage Guide for more detailed instructions.
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.
Distributed under the MIT License. See LICENSE.md
for more information.
We didn't provide support for this project, but you can submit an issue or a pull request. The feedbacks are welcome.