@reactionary/algolia 0.10.13 → 0.10.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,7 +20,7 @@ class AlgoliaProductRecommendationsCapability extends ProductRecommendationsCapa
|
|
|
20
20
|
return 10;
|
|
21
21
|
}
|
|
22
22
|
getQueryParametersForRecommendations(algorithm, query) {
|
|
23
|
-
const ruleContexts = query.personalizationProfile ? [...query.personalizationProfile.segments.map((segment) => "
|
|
23
|
+
const ruleContexts = query.personalizationProfile ? [...query.personalizationProfile.segments.map((segment) => "segment_" + segment)] : [];
|
|
24
24
|
if (query.labels) {
|
|
25
25
|
ruleContexts.push(...query.labels);
|
|
26
26
|
}
|
|
@@ -41,7 +41,7 @@ class AlgoliaProductSearchCapability extends ProductSearchCapability {
|
|
|
41
41
|
}
|
|
42
42
|
const rulesContext = [];
|
|
43
43
|
if (payload.personalizationProfile) {
|
|
44
|
-
rulesContext.push(...payload.personalizationProfile.segments.map((s) => `
|
|
44
|
+
rulesContext.push(...payload.personalizationProfile.segments.map((s) => `segment_${s}`));
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
47
|
indexName: getProductIndexNameForLocale(this.config.indexName, this.context.languageContext.locale),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactionary/algolia",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/Solteq/reactionary.git"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@reactionary/core": "0.10.
|
|
12
|
+
"@reactionary/core": "0.10.14",
|
|
13
13
|
"zod": "4.1.9",
|
|
14
14
|
"algoliasearch": "^5.48.0"
|
|
15
15
|
},
|