← back to Hospitalitywallpaper
search: /api matcher now covers title+tags+description+type+vendor+sku
af074cd2808930da061349802eaf4408db24cc67 · 2026-07-29 09:46:17 -0700 · Steve Abrams
Files touched
Diff
commit af074cd2808930da061349802eaf4408db24cc67
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed Jul 29 09:46:17 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 fd3eb0d..11f3b3f 100644
--- a/server.js
+++ b/server.js
@@ -227,7 +227,7 @@ function filterProducts({ q, aesthetic, vendor } = {}, skip = null) {
let list = PRODUCTS_NICHE;
if (q) {
const needle = String(q).toLowerCase();
- list = list.filter(p => (p.title || '').toLowerCase().includes(needle) || (p.tags || []).some(t => 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 => t.toLowerCase().includes(needle)));
}
if (skip !== 'aesthetic' && aesthetic && aesthetic !== 'all') list = list.filter(p => productInRail(p, aesthetic, RAIL_SYN));
if (skip !== 'vendor' && vendor && vendor !== 'all') list = list.filter(p => p.vendor === vendor);
← 6f8aaf0 corner-nav: live as-you-type search with thumbnail previews
·
back to Hospitalitywallpaper
·
corner-nav: block javascript:/data: URIs in search preview ( 6a5772f →