VOOZH about

URL: https://www.nuget.org/packages/Ekom.Algolia/0.2.18

⇱ NuGet Gallery | Ekom.Algolia 0.2.18




👁 Image
Ekom.Algolia 0.2.18

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ekom.Algolia --version 0.2.18
 
 
NuGet\Install-Package Ekom.Algolia -Version 0.2.18
 
 
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="Ekom.Algolia" Version="0.2.18" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ekom.Algolia" Version="0.2.18" />
 
Directory.Packages.props
<PackageReference Include="Ekom.Algolia" />
 
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 Ekom.Algolia --version 0.2.18
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ekom.Algolia, 0.2.18"
 
 
#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 Ekom.Algolia@0.2.18
 
 
#: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=Ekom.Algolia&version=0.2.18
 
Install as a Cake Addin
#tool nuget:?package=Ekom.Algolia&version=0.2.18
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Ekom.Algolia

👁 Nuget
👁 Publish Ekom.Algolia

Algolia integration plugin for Ekom (Umbraco).

Features

  • Product indexing with background queue/worker.
  • Product search service with Algolia SDK SearchForHits requests.
  • Algolia Insights events for view, add-to-cart, checkout, purchase.
  • In-memory search result caching with store-scoped invalidation after reindex/update/delete.
  • Index naming convention: {primary|replica|query_suggestions}.ENVIRONMENT.STORE.ENTITY[_sorted_by_{asc|desc}_ATTRIBUTE][.Locale][.Currency].

Install

Register services:

using Ekom.Algolia;

services.AddAlgolia();

Search products:

using Algolia.Search.Models.Search;
using Ekom.Algolia.Models.Search;
using Ekom.Algolia.Services;

public sealed class ProductSearchController
{
 private readonly IAlgoliaSearchService _algoliaSearchService;

 public ProductSearchController(IAlgoliaSearchService algoliaSearchService)
 {
 _algoliaSearchService = algoliaSearchService;
 }

 public async Task<IReadOnlyList<string>> SearchAsync(CancellationToken ct)
 {
 var response = await _algoliaSearchService.SearchProductsAsync(
 new AlgoliaSearchRequest
 {
 StoreAlias = "Store",
 Locale = "en-US",
 Currency = "USD",
 Query = new SearchForHits
 {
 Query = "shoe",
 HitsPerPage = 20,
 Filters = "available:true"
 }
 },
 ct).ConfigureAwait(false);

 return response.Hits.Select(x => x.Title).ToList();
 }
}

Configuration (appsettings.json)

{
 "Ekom": {
 "Algolia": {
 "Enabled": true,
 "ApplicationId": "APP_ID",
 "AdminApiKey": "ADMIN_API_KEY",
 "SearchApiKey": "SEARCH_API_KEY",
 "InsightsApiKey": "INSIGHTS_API_KEY",
 "AnalyticsRegion": "eu",
 "Environment": "prod",
 "Indexing": {
 "Enabled": true,
 "Products": true,
 "BatchSize": 1000,
 "ProductProperties": [
 "title",
 "summary",
 "description",
 "channels|array",
 "stockCount|int",
 "weight|decimal",
 "publishedAt|unix"
 ],
 "Dispatching": {
 "MaxBatchSize": 100,
 "FlushIntervalSeconds": 2,
 "MaxQueueSize": 10000,
 "MaxConcurrency": 2
 }
 },
 "Search": {
 "Enabled": true,
 "Products": true,
 "QuerySuggestions": true,
 "MinimumQueryLength": 2,
 "MaxHitsPerPage": 100,
 "QuerySuggestionsProvisioning": {
 "Enabled": true,
 "UseReplicas": false,
 "MinimumHits": 5,
 "MinimumLetters": 4,
 "EnablePersonalization": false,
 "AllowSpecialCharacters": false,
 "Exclude": []
 },
 "Cache": {
 "Enabled": true,
 "DurationMinutes": 60,
 "CacheEmptyResults": true
 }
 },
 "Events": {
 "Enabled": true,
 "ViewedProduct": true,
 "AddedToCart": true,
 "StartedCheckout": true,
 "Purchase": true
 },
 "Stores": [
 {
 "Alias": "Store",
 "Domain": "https://example.com"
 }
 ]
 }
 }
}

Notes

  • Indexing triggers from Umbraco content notifications for ekmProduct.
  • Search uses the required SearchApiKey; indexing and settings operations continue to use AdminApiKey.
  • When Search.QuerySuggestions is enabled, the plugin provisions the separate query_suggestions... index configuration automatically with the Admin API key.
  • Set AnalyticsRegion to us or eu if you know your Algolia analytics region; if omitted, the plugin tries us and then eu.
  • IAlgoliaSearchService.SearchProductsAsync(...) returns hits together with paging metadata, query text, processing time, and raw facets.
  • The plugin always resolves and sets the Algolia index name from Ekom store alias, locale, and currency; callers should not set IndexName themselves.
  • Search cache keys include the resolved index name and serialized Algolia query payload so all SDK options affect caching.
  • Store Locale and Currency now come from the Ekom store resolved by alias, so appsettings.json only needs the store alias and optional domain.
  • Stores[].Domain must be an absolute URL such as https://example.com; invalid values are ignored and logged as warnings during indexing.
  • Request and order context decide which culture and currency suffix is used; background indexing falls back to the store's default culture/currency.
  • Title is always indexed as a top-level field, and NodeName contains the Umbraco node name.
  • Variants are not indexed by default.
  • Indexing.ProductProperties supports one optional modifier per property: |array, |int, |decimal, |unix, or |unixms.
  • |array parses JSON arrays such as checkbox-list values like ["Web","Store"] into Algolia string arrays.
  • |decimal accepts either comma or dot decimal separators, so values like 0,1 and 0.0 are indexed as decimals.
  • Invalid |array, |int, and |decimal values are skipped instead of being indexed as strings.
  • Manual reindex all endpoint: GET or POST /umbraco/backoffice/api/Ekom/AlgoliaBackoffice/RebuildIndexesAsync.
  • Manual reindex store endpoint: GET or POST /umbraco/backoffice/api/Ekom/AlgoliaBackoffice/RebuildStoreIndexesAsync?storeAlias=Store.
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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
0.2.29 0 6/28/2026
0.2.28 99 6/8/2026
0.2.27 99 6/8/2026
0.2.26 171 6/7/2026
0.2.25 101 6/3/2026
0.2.24 108 5/4/2026
0.2.23 111 5/4/2026
0.2.22 108 4/30/2026
0.2.21 113 4/23/2026
0.2.20 113 4/23/2026
0.2.19 109 4/23/2026
0.2.18 103 4/22/2026
0.2.17 102 4/22/2026
0.2.16 111 4/22/2026
0.2.15 111 4/21/2026
0.2.14 102 4/20/2026
0.2.13 101 4/20/2026
0.2.12 116 4/15/2026
0.2.11 105 4/15/2026
0.2.10 121 3/27/2026
Loading failed