← back to 1950swallpaper
search: /api matcher now covers title+tags+description+type+vendor+sku
8ca3e4614b9213c55fe503d4fd858db40f7fd3cc · 2026-07-29 09:46:16 -0700 · Steve Abrams
Files touched
Diff
commit 8ca3e4614b9213c55fe503d4fd858db40f7fd3cc
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed Jul 29 09:46:16 2026 -0700
search: /api matcher now covers title+tags+description+type+vendor+sku
---
server.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 73c1106..f7950f3 100644
--- a/server.js
+++ b/server.js
@@ -234,7 +234,7 @@ function filterProducts(query) {
let list = PRODUCTS_NICHE;
if (q) {
const needle = String(q).toLowerCase();
- list = list.filter(p => (p.title || '').toLowerCase().includes(needle) || (p.tags || []).some(t => String(t).toLowerCase().includes(needle)));
+ list = list.filter(p => (p.title || '').toLowerCase().includes(needle) || (p.description || p.body_html || '').toLowerCase().includes(needle) || (p.product_type || '').toLowerCase().includes(needle) || (p.vendor || '').toLowerCase().includes(needle) || (p.sku || '').toLowerCase().includes(needle) || (p.tags || []).some(t => String(t).toLowerCase().includes(needle)));
}
if (aesthetic && aesthetic !== 'all') list = list.filter(p => productInRail(p, aesthetic, RAIL_SYN));
// SWEEP-A1: tag filter — sub-bucket rails on the homepage call /api/products?tag=<name>
← f2c7169 corner-nav: live as-you-type search with thumbnail previews
·
back to 1950swallpaper
·
corner-nav: block javascript:/data: URIs in search preview ( 8c623eb →