CMS category search provider and extensions methods for projects with Geta.Optimizely.Categories and Optimizely Find (Search & Navigation).
- CMS search provider powered by Optimizely Find.
- Category filter and facet extension methods for ITypeSearch and IHasFacetResults.
Install NuGet package from Optimizely NuGet Feed:
dotnet add package Geta.Optimizely.Categories.Find
Then, call the following in the Configure method:
app.UseGetaCategoriesFind();
ITypeSearch<T> FilterByCategories<T>(this ITypeSearch<T> search, IEnumerable<ContentReference> categories) where T : ICategorizableContent
ITypeSearch<T> FilterHitsByCategories<T>(this ITypeSearch<T> search, IEnumerable<ContentReference> categories) where T : ICategorizableContent
ITypeSearch<T> ContentCategoriesFacet<T>(this ITypeSearch<T> request) where T : ICategorizableContent
IEnumerable<ContentCount> ContentCategoriesFacet<T>(this IHasFacetResults<T> result) where T : ICategorizableContent
https://github.com/brianweet https://github.com/MattisOlsson