Skip to content

Latest commit

 

History

History
82 lines (54 loc) · 7.91 KB

README.md

File metadata and controls

82 lines (54 loc) · 7.91 KB

Xperience by Kentico Algolia

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

Description

This integration enables you to create Algolia search indexes to index content of web pages from an Xperience website channel using a code-first approach. To provide a search interface for the indexed content, developers can use the .NET API, JavaScript API, or the InstantSearch.js library.

Library Version Matrix

Xperience Version Library Version
>= 29.5.0 >= 5.0.0
>= 29.0.0 >= 4.1.0
28.x >= 3.x
>= 26.2.0, < 27.0.0 2.x

Dependencies

Package Installation

Add the package to your application using the .NET CLI

dotnet add package Kentico.Xperience.Algolia

Quick Start

  1. Add configuration from your Algolia account to the ASP.NET Core appsettings.json file:

    "CMSAlgoliaSearch": {
        "ApplicationId": "<your application ID>",
        "ApiKey": "<your Indexing API key>",
        "SearchKey": "<your Search API key>"
    }
  2. Define a custom DefaultAlgoliaIndexingStrategy implementation to customize how content pages/content items are processed for the index. See Custom-index-strategy.md

  3. Add this library to the application services, registering your custom DefaultAlgoliaIndexingStrategy and Algolia services

    // Program.cs
    services.AddKenticoAlgolia(configuration);
    services.RegisterStrategy<GlobalAlgoliaIndexingStrategy>("DefaultStrategy");
  4. Create an index in Xperience's Administration within the Search application added by this library. Administration search edit form

  5. Rebuild the index in Xperience's Administration within the Search application added by this library. Administration search edit form

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

Full Instructions

View the Usage Guide for more detailed instructions.

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.