NivoSearch – Ajax Search for WooCommerce
WooCommerce Ajax Search with instant results, plus a WooCommerce search plugin with typo tolerance, SKU, GTIN and attribute search.
Install in
NivoSearch is a WooCommerce Ajax Search plugin that replaces the default product search with instant, typo-tolerant live results. Customers find products as they type, without reloading the page.
As a WooCommerce search plugin, it uses an indexed search engine with typo tolerance, fuzzy matching, synonyms, and SKU, variation SKU, GTIN, EAN, UPC, ISBN and attribute search. It also includes ranking and merchandising controls, three result layouts, and six search bar styles.
Store owners use search presets to choose which product fields are searched, which details appear in results, and how each search bar looks and behaves. NivoSearch suits WooCommerce stores of any size and includes mobile-friendly layouts, multilingual support, and product discovery tools in one plugin. Shoppers find relevant products even when they misspell a term or know a product only by its SKU.
Live demo | Features | Documentation | WordPress.org support
WooCommerce Ajax Search: instant results as customers type
- Live results: WooCommerce Ajax Search shows matching products in a dropdown while the customer types, with no page reload.
- Rich results: Image, price, sale price, SKU, stock status, category labels and optional add to cart, in list, compact or grid layouts.
- Built for speed and access: Results come from a local product index and are cached. A mobile full-screen overlay and keyboard and screen-reader support are included.
- Forgiving: Typo correction, fuzzy matching, synonyms and a clickable “Did you mean?” suggestion.
WooCommerce Search Plugin: full control over product search
- What it is: A free WooCommerce search plugin that improves search quality across the whole store, not only in the dropdown.
- What it searches: Product titles, descriptions, SKUs, variation SKUs, GTIN/EAN/UPC/ISBN codes, attributes, categories and tags.
- How it finds products: An indexed engine with typo correction, fuzzy matching, accent-insensitive matching and synonyms.
- How it displays results: List, compact or grid layouts with images, price, SKU, stock status and optional add to cart.
- How you control it: Search presets, relevance ranking, pin/bury/redirect merchandising rules, shortcode, block and theme search replacement.
- For developers: REST API, WP-CLI index commands, PHP filters and JavaScript events.
- Works with: WooCommerce, WPML, Polylang, block themes and classic themes.
Why choose NivoSearch?
NivoSearch improves WooCommerce product discovery by showing relevant product suggestions while customers type. Instead of requiring shoppers to submit a search and wait for a separate results page, it lets them inspect matching products directly in a live search panel.
Key benefits include configurable product search, SKU and variation SKU matching, built-in typo corrections, fuzzy search fallback, and optional add-to-cart controls. Store owners can customize search behavior and presentation for different areas of their store using separate search presets.
The free version includes up to 10 custom typo correction rules and up to 10 custom synonym groups.
What’s new in 2.1.0
- Index-first search engine: Product titles, SKUs, content, attributes, categories and tags are searched through a local index table, with automatic fallback to the standard WordPress query if the index is not ready.
- Background indexing for large catalogs: The index is built in resumable background batches (Action Scheduler when available, otherwise WP-Cron) with a progress notice, plus
wp nivo-search index rebuildandwp nivo-search index statusWP-CLI commands. - GTIN, EAN, UPC and ISBN search: Shoppers can find products by barcode or ISBN as well as SKU.
- Attribute search: Match product attribute values such as color, size or material.
- Synonyms: A built-in synonym dictionary plus up to 10 custom synonym groups, for example “sofa, couch, settee”.
- Relevance ranking: Adjust how much title, SKU and content matches count, and boost in-stock, popular, highly rated or recent products.
- Merchandising rules: Pin products to the top, bury products, or redirect a search term to a page, such as a returns policy or a category.
- Six search bar styles: Standard, icon left, pill, with button, minimal, and an icon-only bar that opens the search box when clicked.
- Three result layouts: List, compact list and product grid, including on the mobile search overlay.
- Cleaner result design: Full product titles, muted SKU, sale price with the old price struck through, a “From” price for variable products, and a placeholder when a product has no image.
- Accessibility: WAI-ARIA combobox pattern with arrow-key navigation, Enter and Escape handling, visible keyboard focus and screen-reader result announcements.
- REST API: Public
nivo-search/v1/search,/presetsand/presets/<id>endpoints for headless and app integrations. - Easier preset editor: Visual layout picker, live preview, input limits, a Duplicate preset action and an index status line.
- Protection and stability: Per-visitor rate limiting, catalog visibility and password-protected product filtering, and a safe fallback to core search if the engine fails.
Features
- Live WooCommerce Ajax Search: Display matching products as customers type, without a full page reload. Results are ordered by relevance, with product title and SKU matches contributing to ranking.
- Configurable product search: Choose whether to search product titles, full and short descriptions, and SKUs. Category and tag matches can appear in separate result sections when enabled.
- SKU and variation SKU search: Help shoppers find products using product codes. A variation SKU match returns the parent product in the search results.
- Typo correction and fuzzy search: Use a built-in dictionary containing more than 300 common corrections. When a search returns no products, the indexed fuzzy search fallback can suggest close matches, restricted to the fields the preset searches. An optional clickable “Did you mean?” suggestion is also available.
- Custom typo correction rules: Add up to 10 custom correction rules in the free version to address store-specific product names and common spelling mistakes.
- Customizable product details: Choose whether search results display product images, prices, SKUs, short descriptions, stock status, category labels, and highlighted search terms.
- Product availability filters: Exclude out-of-stock products or selected product IDs from search results.
- Add to cart from search results: Optionally display an add-to-cart control and quantity selector for eligible products. Variable products link to their product pages so shoppers can choose the required options.
- Unlimited search presets: Create separate search configurations with different search scopes, display settings, colors, dimensions, result counts, and search delays.
- Shortcode and block support: Add a search bar using the
[nivo_search id="123"]shortcode or the NivoSearch block in the WordPress block editor. - Optional theme search replacement: Replace search forms rendered through supported WordPress and WooCommerce hooks or the core Search block. Custom theme markup may require the shortcode or block instead.
- Mobile search overlay: Use a full-screen search interface on narrow screens for a mobile-friendly product discovery experience.
- Recent search history: Store up to eight recent queries in the visitor’s browser, display them when the search input is focused and empty, and allow individual entries or the entire history to be removed.
- Multilingual and accented search: Scope product and taxonomy results to the current WPML or Polylang language and match accented or unaccented words.
- WooCommerce search results page: When enabled, route submitted WordPress searches to the WooCommerce shop page. If that page is unavailable, show product-only search results.
- View all results: Optionally display a link from the live search panel to the full product results page.
- GA4 and Google Tag Manager events: Send search events to an existing GA4 or Google Tag Manager integration. NivoSearch does not load the analytics scripts. See the Privacy and data section for details.
- Search index and caching: Maintain a local product index that powers search and fuzzy matching, and cache search results for five minutes. Rebuild the index from the plugin settings, in the background, or with WP-CLI.
Who is NivoSearch for?
NivoSearch is designed for WooCommerce store owners who want to improve product discovery with live search without developing a custom search interface.
This WooCommerce Ajax Search plugin is useful for stores where customers:
- Need to find products quickly without leaving the current page.
- Search for products using SKUs or variation SKUs.
- Frequently misspell product names or search with accented and unaccented words.
- Want to inspect product images, prices, stock status, or other details before opening a product page.
- Prefer to add eligible products to their cart directly from search results.
- Shop on mobile devices and need a responsive search interface.
- Browse multilingual catalogs using WPML or Polylang.
- Need different search configurations for different pages or sections of a store.
Search index and performance
NivoSearch searches a local product index first and falls back to standard WordPress queries when the index is not built yet. The same index supports fuzzy matching. Build or rebuild it from the plugin settings (it runs in background batches and can be resumed) or with WP-CLI.
Product saves and WooCommerce imports update the index. If indexed terms look incomplete, rebuild the index. Search results are cached for five minutes, and the cache is invalidated when products or presets change.
Actual search response times depend on the store’s hosting environment, database performance, product catalog, and configuration. No fixed response-time or catalog-size guarantee is made.
WooCommerce Ajax Search compared with standard search
The standard WooCommerce search form generally submits a query and loads a separate results page. A WooCommerce Ajax Search interface can display matching product suggestions while customers remain on the current page.
NivoSearch adds configurable live product suggestions, SKU and variation SKU matching, typo correction, fuzzy search fallback, product details, and optional add-to-cart controls. Store owners can choose which product fields are searched and which details appear in the results.
These features give shoppers another way to discover products without replacing the underlying WooCommerce product catalog or requiring a separate search service.
Developer hooks and events
The following PHP filters are available in the current plugin:
nivo_search_args: Change search arguments before the product query.nivo_search_results: Change the complete results array before the response is sent.nivo_search_result_item: Change an individual product result.nivo_search_shortcode_html: Change the rendered shortcode HTML.nivo_search_localize_data: Change data passed to the frontend script.nivo_search_should_enqueue_assets: Prevent frontend assets from being enqueued.nivo_search_typo_corrections: Change the built-in and custom correction map.nivo_search_corrected_term: Override a correction for a query.nivo_search_max_custom_rules: Change the default limit of 10 custom correction rules.nivo_search_language_query_args: Change language arguments for multilingual queries.nivo_search_results_redirect_url: Change or cancel the search results redirect.nivo_search_results_post_types: Change post types in the search results page fallback.nivo_search_index_tokens: Change tokens stored for an indexed product.nivo_search_script_dependenciesandnivo_search_style_dependencies: Change frontend asset dependencies.nivo_search_script_versionandnivo_search_style_version: Change frontend asset versions.nivo_search_use_index_engine: Turn the index-first engine on or off.nivo_search_enable_synonymsandnivo_search_synonyms: Turn synonyms on or off, or change the built-in dictionary.nivo_search_max_custom_synonyms: Change the limit of 10 custom synonym groups.nivo_search_rate_limitandnivo_search_rate_limit_ip: Change the per-visitor search rate limit or the detected IP address.nivo_search_use_action_scheduler,nivo_search_sync_rebuild_limitandnivo_search_auto_reindex: Control how and when the index is rebuilt.nivo_search_index_contentandnivo_search_index_content_token_limit: Control how much product content is indexed.nivo_search_candidate_pool: Change how many candidates the index considers before ranking.nivo_search_engine_failed: Fires when the index engine fails and core search is used instead.
Available PHP actions:
nivo_search_plugin_loaded: Fires when the main plugin controller is initialized.nivo_search_components_loaded: Fires after plugin components are initialized.nivo_search_after_enqueue_scriptsandnivo_search_after_enqueue_styles: Fire after frontend assets are enqueued.nivo_search_migrations_complete: Fires after database migrations run.nivo_search_results_query: Fires after the search results page fallback query is configured.
Frontend events are dispatched on document and use the nivo_search: prefix:
nivo_search:initnivo_search:beforeSearchnivo_search:resultsDisplayednivo_search:noResultsnivo_search:errornivo_search:resultsClearednivo_search:focusnivo_search:blurnivo_search:didYouMeanClickednivo_search:addedToCartnivo_search:mobileOverlayOpenednivo_search:mobileOverlayClosed
Privacy and data
Search queries are sent to the store’s own WordPress site to retrieve results. Recent searches are stored in the visitor’s browser using localStorage, with up to eight entries. When the typo correction system changes a query, NivoSearch records the original and corrected terms in a local correction analytics table.
The Google Analytics tracking setting is enabled by default. If an existing Google Analytics 4 gtag function or Google Tag Manager dataLayer is present, NivoSearch sends a search event containing the query and result count. NivoSearch does not load those analytics scripts or check consent itself.
Store owners should disable the tracking setting or coordinate it with their site’s consent tool as required by their privacy and consent policy.
When the plugin is deactivated or deleted, presets and settings are preserved by default. Transient caches are removed on deletion. Enable “Delete all data on uninstall” in NivoSearch settings before deleting the plugin if you want it to remove its presets, settings, and custom tables as well.
Developer
NivoSearch is developed and maintained by Nazmun Sakib.
Visit the NivoSearch website for product information, the GitHub repository for source code, and the documentation for setup guides.
Written by Joobi from the project's own listing. See the source page
2.1.0
- NEW: Index-first search engine over titles, SKUs, content, attributes, categories and tags, with automatic fallback to standard WordPress queries.
- NEW: Background, resumable index rebuild (Action Scheduler or WP-Cron) with progress notice, and WP-CLI commands
wp nivo-search index rebuildandstatus. - NEW: GTIN, EAN, UPC and ISBN search, indexed with SKUs.
- NEW: Product attribute search.
- NEW: Synonyms: built-in dictionary plus up to 10 custom groups, with a Synonyms admin tab.
- NEW: Ranking tab: adjustable title, SKU and content weights and boosts for in-stock, popular, highly rated and recent products.
- NEW: Merchandising tab: pin, bury and redirect rules for search terms.
- NEW: Public REST API:
nivo-search/v1/search,/presetsand/presets/<id>. - NEW: Six search bar styles, including an icon-only bar that opens the search box on click.
- NEW: Three result layouts (list, compact, grid), also applied on the mobile overlay.
- NEW: Accessible combobox: arrow keys, Home/End, Enter, Escape, visible focus and screen-reader announcements.
- NEW: Preset editor: visual layout picker, live preview, Duplicate action and index status line.
- NEW: Per-visitor rate limiting for search requests.
- NEW: Sale price with struck-through old price, “From” price for variable products, and an image placeholder in results.
- IMPROVED: Result design: full product titles, muted SKU, two-line descriptions and larger phone thumbnails.
- IMPROVED: Fuzzy search is restricted to the fields a preset searches and uses index-friendly lookups.
- IMPROVED: Search cache key includes language, accuracy, ranking and synonym settings; cache invalidation is throttled during bulk imports.
- FIX: Excluded products are now honoured on the index search path.
- FIX: Products hidden from search, and password-protected products, no longer appear in results.
- FIX: Search falls back to core search instead of showing an error if the engine fails.
- FIX: Icon-only search box no longer opens off-screen when the icon is near the left edge of the page.
- DEV: PHPUnit test suite, PHPCS (WordPress standards) and a GitHub Actions workflow on PHP 7.4, 8.1 and 8.3.
- DEV: New filters including
nivo_search_use_index_engine,nivo_search_enable_synonyms,nivo_search_rate_limitandnivo_search_candidate_pool.
2.0.7
- IMPROVED: Expanded WooCommerce Ajax Search feature descriptions, store use cases, comparison guidance, and FAQs.
2.0.6
- IMPROVED: Updated plugin documentation and metadata with verified feature, compatibility, privacy, and setup information.
2.0.5
- FIX: Search results cache is now scoped per language and per accuracy setting — multilingual sites and typo/fuzzy toggle changes no longer serve stale results.
- FIX: Typo-correction analytics are now counted on cached searches too, not only the first uncached search.
- FIX: Removed a PHP 8.2 deprecation warning caused by an undeclared property.
- FIX: Plugin uninstall now fully clears search result transients and search index options.
- PERFORMANCE: Product term caching enabled to remove per-result category queries from result rendering.
- PERFORMANCE: Add-to-cart nonce generated once per response instead of once per product.
- PERFORMANCE: Fuzzy search now batch-checks publish status in a single query instead of one per product.
- IMPROVED: SEO and GEO metadata updated around the “WooCommerce Ajax Search” keyword.
- CLEANUP: Removed an unused legacy admin script.
- CLEANUP: Result list styling hardened against theme conflicts.
2.0.3
- NEW: Default WooCommerce search form is now replaced by NivoSearch automatically when theme integration is enabled.
- NEW: Native WordPress search form and WooCommerce product search form both route through NivoSearch.
- FIX: Resolved a search caching issue that could return stale results after product updates.
- IMPROVED: Plugin metadata updated for better SEO and WordPress.org discoverability.
- IMPROVED: Plugin name and short descriptions refined for clarity.
2.0.2
- NEW: Fuzzy search engine finds close product name matches when no exact results exist.
- NEW: Search index built and maintained automatically, with one-click rebuild in Settings.
- NEW: “Did you mean?” suggestion with a clickable link to rerun the corrected search.
- NEW: Variation SKU search returns the correct parent product when searching a variation product code.
- NEW: Typo Rules admin page with up to 10 custom correction rules and CSV import and export.
- NEW: Typo correction engine with more than 300 built-in e-commerce misspelling corrections.
- NEW: Accented character support allows “cafe” to find “Café” and vice versa.
- NEW: WPML and Polylang multilingual support, with language scoping on every search.
- NEW: Block and FSE theme support for replacing the Gutenberg core Search block.
- NEW: Preset selector for theme form replacement.
- NEW: Search history panel showing the last eight searches when the search bar receives focus.
- NEW: Full-screen mobile search overlay on small screens.
- NEW: Google Analytics 4, Universal Analytics, and Google Tag Manager search-event integration.
- NEW: WooCommerce products shown on the native WordPress search results page.
- NEW: Optional redirect to the WooCommerce shop page when customers press Enter.
- IMPROVED: Fuzzy search and typo tolerance are independent settings.
- IMPROVED: Matching products are loaded in a single database batch call, avoiding per-product queries.
- IMPROVED: SKU relevance ranking uses a single bulk database query instead of one per product.
- IMPROVED: Product loading switched to direct
wc_get_product()to find products regardless of how they were created. - IMPROVED: Index rebuild immediately invalidates the search transient cache.
- FIX:
exclude_out_of_stockcorrectly includes products with no stock metadata row. - SECURITY: Nonce verified on all request paths, including wc-ajax.
- SECURITY: Preset settings sanitized before inclusion in the JSON response.
- SECURITY: Database queries use prepared statements throughout.
2.0.0
- NEW: Add-to-cart button in search results with instant cart update and no page reload.
- NEW: Optional quantity selector in search results.
- NEW: Variable product support, linking to product pages for option selection.
- NEW: Stock status badges for In Stock, Out of Stock, and On Backorder.
- NEW: Category labels on each product result card.
- NEW: Short descriptions displayed beneath product names.
- NEW: Sale prices displayed automatically when a sale is active.
- NEW: SKU displayed inline next to the product name.
- NEW: Five-minute result cache, cleared automatically when products or presets change.
- NEW: “View All Results” link at the bottom of the results panel.
- NEW: Database migration system for safe plugin updates.
- NEW: Preset data preserved by default on plugin deletion.
- NEW: “Delete all data on uninstall” opt-in setting.
- NEW: Unlimited search presets.
- NEW: Gutenberg block with preset selector.
- FIX: Default preset creation on fresh installation.
- FIX: Deactivation now correctly flushes rewrite rules.
- FIX: Custom CSS classes on the shortcode are applied correctly to the rendered HTML.
1.2.0
- FIX: Activation race condition resolved so the default preset is reliably created on fresh installation.
- FIX: Deactivation hook now correctly flushes rewrite rules.
- FIX: Shortcode
container_class,input_class, andresults_classattributes are applied to rendered HTML. - FIX: Duplicate clear button removed and browser-native X icon suppressed on type=”search” inputs.
- NEW: Database migration system for safe plugin updates.
- NEW: Safe uninstall with preset data preserved by default when the plugin is deleted.
- NEW: “Data & Privacy” settings card with opt-in data deletion.
- IMPROVED: Added
aria-labelto the search input andaria-liveto the results panel for screen readers. - IMPROVED: Submit button restored for keyboard navigation and accessibility.
- IMPROVED: Default preset now includes all current settings keys on fresh installation.
1.0.0
- Initial release.
Follow this listing's changes (Atom feed)