![]() |
VOOZH | about |
dotnet add package Ekom.Algolia --version 0.2.28
NuGet\Install-Package Ekom.Algolia -Version 0.2.28
<PackageReference Include="Ekom.Algolia" Version="0.2.28" />
<PackageVersion Include="Ekom.Algolia" Version="0.2.28" />Directory.Packages.props
<PackageReference Include="Ekom.Algolia" />Project file
paket add Ekom.Algolia --version 0.2.28
#r "nuget: Ekom.Algolia, 0.2.28"
#:package Ekom.Algolia@0.2.28
#addin nuget:?package=Ekom.Algolia&version=0.2.28Install as a Cake Addin
#tool nuget:?package=Ekom.Algolia&version=0.2.28Install as a Cake Tool
👁 Nuget
👁 Publish Ekom.Algolia
Algolia integration plugin for Ekom (Umbraco).
SearchForHits requests.SearchForHits requests.{primary|replica|query_suggestions}.ENVIRONMENT.STORE.ENTITY[_sorted_by_{asc|desc}_ATTRIBUTE][.Locale][.Currency].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:1"
}
},
ct).ConfigureAwait(false);
return response.Hits.Select(x => x.Title).ToList();
}
}
{
"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,
"Categories": 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,
"Categories": true,
"QuerySuggestions": true,
"IncludeUserToken": true,
"VaryCacheByUserToken": false,
"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"
}
]
}
}
}
| Setting | Type | Default | Description |
|---|---|---|---|
Enabled |
bool |
true |
Enables the Algolia plugin. |
ApplicationId |
string |
required | Algolia application ID. |
AdminApiKey |
string |
required | API key used for indexing, settings, replicas, and query suggestion provisioning. |
SearchApiKey |
string |
required | API key used by IAlgoliaSearchService search requests. |
InsightsApiKey |
string |
null |
Optional key for Insights events. Falls back to AdminApiKey when omitted. |
AnalyticsRegion |
string |
null |
Algolia analytics region for query suggestions, usually us or eu. If omitted, the plugin tries both. |
Environment |
string |
prod |
Environment segment used in generated index names. |
Indexing:Enabled |
bool |
true |
Enables indexing features. |
Indexing:Products |
bool |
true |
Enables product indexing. |
Indexing:Categories |
bool |
true |
Enables category indexing. |
Indexing:BatchSize |
int |
1000 |
Batch size for Algolia save/replace/delete operations. |
Indexing:ProductProperties |
string[] |
[] |
Additional product properties/metafields to include in product records. Supports modifiers documented below. |
Indexing:SortedReplicas |
object[] |
[] |
Replica definitions using Attribute and Direction (Asc or Desc). |
Indexing:Dispatching:MaxBatchSize |
int |
100 |
Maximum queued jobs processed in one worker batch. |
Indexing:Dispatching:FlushIntervalSeconds |
int |
2 |
Worker delay between queue flushes. |
Indexing:Dispatching:MaxQueueSize |
int |
10000 |
Maximum in-memory queue size. |
Indexing:Dispatching:MaxConcurrency |
int |
2 |
Maximum indexing worker concurrency. |
Search:Enabled |
bool |
true |
Enables Algolia search services. |
Search:Products |
bool |
true |
Enables product search. |
Search:Categories |
bool |
true |
Enables category search. |
Search:QuerySuggestions |
bool |
false |
Enables query suggestion search and provisioning. |
Search:IncludeUserToken |
bool |
true |
Adds userToken to Algolia search requests using IAlgoliaUserTokenProvider, unless the query already has a token. |
Search:VaryCacheByUserToken |
bool |
false |
Includes userToken in search cache keys. Keep false for shared cache; set true when Algolia personalization changes result order/content per user. |
Search:MinimumQueryLength |
int |
2 |
Minimum query length before search executes. Set 0 to disable this guard. |
Search:MaxHitsPerPage |
int |
100 |
Upper bound for requested HitsPerPage. Set 0 or less to avoid clamping. |
Search:Cache:Enabled |
bool |
true |
Enables in-memory search response caching. |
Search:Cache:DurationMinutes |
int |
60 |
Search cache duration. |
Search:Cache:CacheEmptyResults |
bool |
true |
Whether empty result sets are cached. |
Search:QuerySuggestionsProvisioning:Enabled |
bool |
true |
Creates/updates Algolia query suggestion configuration automatically. |
Search:QuerySuggestionsProvisioning:UseReplicas |
bool |
false |
Includes source index replicas in query suggestion generation. |
Search:QuerySuggestionsProvisioning:MinimumHits |
int |
5 |
Minimum hits required for query suggestions. |
Search:QuerySuggestionsProvisioning:MinimumLetters |
int |
4 |
Minimum letters required for query suggestions. |
Search:QuerySuggestionsProvisioning:EnablePersonalization |
bool |
false |
Enables personalization for query suggestions configuration. |
Search:QuerySuggestionsProvisioning:AllowSpecialCharacters |
bool |
false |
Allows special characters in query suggestions. |
Search:QuerySuggestionsProvisioning:Exclude |
string[] |
[] |
Query suggestion exclusion list. |
Events:Enabled |
bool |
true |
Enables Algolia Insights events. |
Events:ViewedProduct |
bool |
true |
Sends product view events. |
Events:AddedToCart |
bool |
true |
Sends add-to-cart conversion events. |
Events:StartedCheckout |
bool |
true |
Sends checkout conversion events. |
Events:Purchase |
bool |
true |
Sends purchase conversion events. |
Stores |
object[] |
[] |
Store aliases supported by the plugin. Locale/currency are resolved from Ekom store data. |
Stores[*]:Alias |
string |
required | Ekom store alias. |
Stores[*]:IncludeStock |
bool |
false |
Includes product stock in indexed records for this store. |
ekmProduct and ekmCategory.SearchApiKey; indexing and settings operations continue to use AdminApiKey.Search.QuerySuggestions is enabled, the plugin provisions the separate query_suggestions... index configuration automatically with the Admin API key.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.IAlgoliaSearchService.SearchCategoriesAsync(...) searches a dedicated category index scoped by store alias and locale.IndexName themselves.Search:IncludeUserToken sends user context to Algolia search. The default provider uses authenticated username, then session ID, then request trace identifier.Search:VaryCacheByUserToken controls whether that token also affects cache keys. Leave it false when results are not personalized so users can share cached results.Locale and Currency now come from the Ekom store resolved by alias, so appsettings.json only needs the store alias.Title is always indexed as a top-level field, and NodeName contains the Umbraco node name.Available is indexed as 1 for available products and 0 for unavailable products, so it can be used for numeric ranking.ProductRanking and CategoryRanking integer fields. Both support negative values. ProductRanking reads the product ekmAlgoliaRank property and defaults to 0 when missing or invalid. CategoryRanking uses the highest valid ekmAlgoliaRank value across the product's categories and defaults to 0 when no category has a valid rank.Indexing.ProductProperties supports one optional modifier per property: |array, |int, |decimal, |unix, or |unixms.metafield:<alias>, for example metafield:material, metafield:color|array, or metafield:releaseDate|unix.|array is configured.|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.|array, |int, and |decimal values are skipped instead of being indexed as strings.GET or POST /umbraco/backoffice/api/Ekom/AlgoliaBackoffice/RebuildIndexesAsync.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. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.28 | 92 | 6/8/2026 |
| 0.2.27 | 95 | 6/8/2026 |
| 0.2.26 | 137 | 6/7/2026 |
| 0.2.25 | 98 | 6/3/2026 |
| 0.2.24 | 104 | 5/4/2026 |
| 0.2.23 | 109 | 5/4/2026 |
| 0.2.22 | 104 | 4/30/2026 |
| 0.2.21 | 111 | 4/23/2026 |
| 0.2.20 | 111 | 4/23/2026 |
| 0.2.19 | 107 | 4/23/2026 |
| 0.2.18 | 101 | 4/22/2026 |
| 0.2.17 | 100 | 4/22/2026 |
| 0.2.16 | 108 | 4/22/2026 |
| 0.2.15 | 109 | 4/21/2026 |
| 0.2.14 | 100 | 4/20/2026 |
| 0.2.13 | 99 | 4/20/2026 |
| 0.2.12 | 113 | 4/15/2026 |
| 0.2.11 | 103 | 4/15/2026 |
| 0.2.10 | 118 | 3/27/2026 |
| 0.2.9 | 117 | 3/19/2026 |