From 52c2165496e7c1fde8363f7bf77aa76ca2b290c0 Mon Sep 17 00:00:00 2001 From: trisusilo48 Date: Mon, 2 Sep 2024 13:13:46 +0700 Subject: delete orderby popular weekly in product serupa dan kamu mungkin juga suka --- src-migrate/services/product.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'src-migrate/services') diff --git a/src-migrate/services/product.ts b/src-migrate/services/product.ts index fe415d11..a6abba47 100644 --- a/src-migrate/services/product.ts +++ b/src-migrate/services/product.ts @@ -43,7 +43,6 @@ export const getProductSimilar = async ({ const query = [ `q=${name}`, 'page=1', - 'orderBy=popular-weekly', 'operation=OR', 'priceFrom=1', ]; -- cgit v1.2.3 From 1e8959ef719689bc8ddd2477fa12e960f4c9a759 Mon Sep 17 00:00:00 2001 From: trisusilo48 Date: Wed, 11 Sep 2024 10:02:37 +0700 Subject: cr - operation , handle minimum match --- src-migrate/services/product.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src-migrate/services') diff --git a/src-migrate/services/product.ts b/src-migrate/services/product.ts index a6abba47..77b645f0 100644 --- a/src-migrate/services/product.ts +++ b/src-migrate/services/product.ts @@ -44,7 +44,8 @@ export const getProductSimilar = async ({ `q=${name}`, 'page=1', 'operation=OR', - 'priceFrom=1', + // 'priceFrom=1', + `source=similar`, ]; if (except?.productId) query.push(`fq=-product_id_i:${except.productId}`); -- cgit v1.2.3