diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-09-02 13:05:46 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-09-02 13:05:46 +0700 |
| commit | 58a8e3c000c6364f81e37a38f1cf6031b7430985 (patch) | |
| tree | 17f5a0b7b08df9c77845b948f80a668140e53674 /src | |
| parent | 47c66a1c432feaf898e3285520dfa892d22d4ad2 (diff) | |
update
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/api/shop/search.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pages/api/shop/search.js b/src/pages/api/shop/search.js index 61f5bf2d..0227a7eb 100644 --- a/src/pages/api/shop/search.js +++ b/src/pages/api/shop/search.js @@ -75,12 +75,14 @@ export default async function handler(req, res) { 'indent=true', `facet.query=${escapeSolrQuery(q)}`, `q.op=${operation}`, - `q=${newQ}`, - 'qf=name_s', + `q=tool box`, + `defType=dismax`, + 'qf=name_s^2, description_s, category_name, manufacture_name_s', + `mm=${checkQ.length}`, `start=${parseInt(offset)}`, `rows=${limit}`, `sort=${paramOrderBy}`, - `fq=-publish_b:false, product_rating_f:[8 TO *], price_tier1_v2_f:[1 TO *], ${excludeDescription}`, + `fq=-publish_b:false, product_rating_f:[8 TO *], price_tier1_v2_f:[1 TO *]`, ]; if (priceFrom > 0 || priceTo > 0) { |
