NPsearch Documentation
Complete guide to install, configure, and get the most out of NPsearch on your PrestaShop store.
1. Installation
Download the ZIP
After purchase, download npsearch-1.0.0.zip from your account page.
Upload to PrestaShop
Go to Back Office → Modules → Module Manager and click “Upload a module”. Select the ZIP file.
Automatic setup
NPsearch will automatically:
- Create search index tables
- Index all your products (happens instantly)
- Seed 585+ synonym groups
- Register in the header (displayTop hook)
- Replace native PrestaShop search
That’s it. No configuration needed. The module works out of the box.
2. First Steps
After installation, visit your store’s frontend. You should see the NPsearch input in your header, replacing the native PrestaShop search bar.
NPsearch widget replaces the native search bar in your theme’s header
3. Search Overlay
When a customer clicks the search input, a full overlay opens with:
- Search input with debounced typing (300ms)
- Popular categories as clickable chips
- Popular brands as clickable chips
- Recent searches (stored in localStorage)
Empty state shows popular categories and brands for quick navigation
4. Search Results
As the customer types, results appear in real-time with:
- Product cards with image, name, price, and stock status
- Result count and query highlighting
- Faceted filters (categories, brands, in-stock toggle)
- Sort options (relevance, price, name, newest)
- Pagination for large result sets
Search results for “mug” — product cards with images, prices, and stock badges
5. Search Page Integration
NPsearch integrates with PrestaShop’s native search page via the ProductSearchProviderInterface. When customers submit the search form or press Enter, they are taken to the standard search results page — powered by NPsearch’s engine.
Full search page with product grid, powered by NPsearch scoring engine
6. Backoffice Configuration
Go to Modules → NPsearch → Configure to access:
Settings
- Custom search selectors: CSS selectors for your theme’s native search elements. NPsearch will intercept clicks on these and open the overlay. Example:
#my-search-btn, .header-search-icon - Hide native search elements: Automatically hide detected native search bars so only NPsearch is visible.
Search Index
- Index status: Shows how many products are indexed
- Rebuild Index: One-click button to re-index all products. Useful after bulk imports.
The index updates automatically when you add, edit, or delete products via hooks.
7. Synonym Management
NPsearch ships with 585+ synonym groups across 23 sectors. You can manage them in the backoffice:
Pre-loaded sectors
How synonyms work
When a customer searches for sneakers, NPsearch expands the search to also match zapatillas, tenis, bambas, deportivas. This happens transparently — the customer sees normal results.
Custom synonyms
In the backoffice, you can:
- Add new synonym groups (group name + pipe-separated terms)
- Edit existing groups
- Activate/Deactivate groups per sector
- Re-seed default synonyms if you accidentally delete them
8. Analytics Dashboard
The backoffice shows search analytics for the last 30 days:
- Total searches
- Zero-result rate (% of searches with no results — aim for <5%)
- Fuzzy fallback rate (% of searches that needed fuzzy matching)
- Popular searches (top 20 queries with search count)
- Zero-result queries (top 20 failed queries — add synonyms or products for these!)
- Daily search volume (last 14 days)
trainers|sneakers|zapatillas|deportivas. This immediately improves their experience.
9. Theme Compatibility
NPsearch is designed to work with any PrestaShop 8+ theme:
- Classic (PS8 default) — fully tested
- Hummingbird (PS9 default) — fully tested
- Custom themes — works via hook auto-detection + custom selector config
How it works
- NPsearch renders its search widget via the
displayTophook - On page load, JavaScript detects the native search bar and moves our widget to its position
- The native search is hidden (CSS hides the form, JS intercepts clicks)
- If auto-detection fails, you can specify custom selectors in the backoffice
Troubleshooting
If NPsearch doesn’t replace your theme’s search:
- Open browser DevTools (F12)
- Find your theme’s search input/button element
- Copy its CSS selector (e.g.,
.header-search-btn) - Paste it in Back Office → NPsearch → Custom search selectors
10. Mobile Experience
NPsearch is fully responsive:
- Overlay goes fullscreen on mobile (<768px)
- Product grid adapts (2 columns on mobile, 4 on desktop)
- Input uses 16px font to prevent iOS Safari zoom
- Touch-friendly targets (44px minimum)
Mobile view — search widget integrates naturally in the header
11. FAQ
Does NPsearch work with PrestaShop 9?
Yes. NPsearch is tested on PrestaShop 8.0 through 9.x. It uses the ProductSearchProviderInterface which is stable across both versions.
Does it require jQuery or any JavaScript framework?
No. NPsearch uses pure vanilla JavaScript (865 lines, IIFE pattern). No jQuery, no React, no Vue, no npm packages.
Does it require Redis, Elasticsearch, or any external service?
No. NPsearch uses only MySQL/MariaDB FULLTEXT indexes. No external services, no monthly fees.
How fast is it?
Simple queries (1-2 words): 80-180ms. Synonym-expanded queries: 80-120ms. Fuzzy fallback: 100-200ms. All queries are under 200ms for catalogs up to 10,000 products.
Can I add my own synonyms?
Yes. The backoffice has a full synonym CRUD manager. Add, edit, activate, or deactivate synonym groups organized by sector.
What happens if I uninstall?
NPsearch cleanly removes all its database tables (search index, trigrams, synonyms, logs). Your store returns to the native PrestaShop search. No traces left.
I need help. How do I contact support?
Email support@neuroplugin.com with your PS version, module version, and a description of the issue. We aim to respond within 24 business hours.