← back to Fabricwallpaper
search: /api matcher now covers title+tags+description+type+vendor+sku
baff6885f0841a4f23adb0256c0d6e7bf5c36bf4 · 2026-07-29 09:46:17 -0700 · Steve Abrams
Files touched
Diff
commit baff6885f0841a4f23adb0256c0d6e7bf5c36bf4
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 43d1229..7cbbd30 100644
--- a/server.js
+++ b/server.js
@@ -171,7 +171,7 @@ function applyFilters(list, { q, aesthetic }) {
let out = list;
if (q) {
const needle = String(q).toLowerCase();
- out = out.filter(p => (p.title || '').toLowerCase().includes(needle) || (p.tags || []).some(t => t.toLowerCase().includes(needle)));
+ out = out.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 (aesthetic && aesthetic !== 'all') out = out.filter(p => productInRail(p, aesthetic));
return out;
← ea60555 corner-nav: live as-you-type search with thumbnail previews
·
back to Fabricwallpaper
·
corner-nav: block javascript:/data: URIs in search preview ( 8a50e22 →