← back to Apartmentwallpaper
search: /api matcher now covers title+tags+description+type+vendor+sku
4071a9f70d379e9bd595db8282578474339c049a · 2026-07-29 09:46:17 -0700 · Steve Abrams
Files touched
Diff
commit 4071a9f70d379e9bd595db8282578474339c049a
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 e1e6eee..3c37404 100644
--- a/server.js
+++ b/server.js
@@ -157,7 +157,7 @@ function filterProducts(query, skip) {
const { q, aesthetic, vendor, tag } = query;
if (skip !== 'q' && 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 (skip !== 'aesthetic' && aesthetic && aesthetic !== 'all') list = list.filter(p => p.aesthetic === aesthetic);
if (skip !== 'tag' && tag) {
← bd83c6c corner-nav: live as-you-type search with thumbnail previews
·
back to Apartmentwallpaper
·
corner-nav: block javascript:/data: URIs in search preview ( 89bf1ee →