Releases: Kentico/xperience-algolia
Releases · Kentico/xperience-algolia
v2.0.0 NuGet package- Handling of invalid configuration
Fixes #9. Previously, missing or invalid Algolia application settings would cause application initialization to fail, making the Xperience administration UI inaccessible. With this release, the required services will always be registered during startup, and logging has been introduced to the administration to indicate errors during initialization.
For the .NET Core application, examples for handling these errors has been added to the README.md. You should use a try/catch
to handle a potentially misconfigured search client:
var searchIndex = _searchClient.InitIndex(AlgoliaSiteSearchModel.IndexName);
var query = new Query(searchText);
try
{
var results = searchIndex.Search<YourModel>(query);
}
catch (Exception e)
{
//...
}
Breaking changes
- Default implementations of services (ie
DefaultAlgoliaInsightsService
) have been markedinternal
.