=== Search Instant ===
Contributors: yodsira
Tags: woocommerce, live search, ajax search, product search, sku
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Live product search for WooCommerce: an instant dropdown with prices, translit and layout tolerant, SKU hits first.

== Description ==

Customers type "ноу" and see laptops in a dropdown. Search Instant is
an index-driven live search built for WooCommerce catalogs - fast even
on thousands of products, tolerant to typos and keyboard layouts.

= What it does =

* Live dropdown under the search box: up to 7 products with thumbnail,
  name and price, plus matching categories.
* Keyboard navigation: arrows move, Enter opens, Escape closes.
* SKU boost: typing an article number puts that product first with a
  SKU badge.
* Translit and layout tolerant: "noutbuk" and "yjqnek,r" both find
  "ноутбук" (the same engine Zero Results Fixer uses).
* Replace the theme search form with one setting, or use the
  [search_instant] shortcode, the classic widget or a Gutenberg block.
* Index-driven: searches run against a compact product index, never a
  full table scan. The index rebuilds in chunks and updates on product
  save.
* The REST endpoint is nonce-checked, rate-limited (30 per minute per
  IP) and returns published products only - never drafts.
* Works with WooCommerce High-Performance Order Storage (HPOS).

= Search Instant Pro =

The Pro companion adds a synonym dictionary, match highlighting,
attribute and description search, popular queries and shared analytics
with SearchMiner. Learn more:
https://yodsira.com/en/product/search-instant/

== Screenshots ==

1. The live dropdown with products and categories.
2. A SKU hit ranking first.
3. Cyrillic found from a latin query.

== Installation ==

1. Install the plugin through the WordPress plugins screen (Plugins ->
   Add New -> Upload Plugin) and activate it.
2. WooCommerce must be active.
3. Open WooCommerce -> Search Instant, enable "Replace theme search
   form" and let the index build.

== Frequently Asked Questions ==

= How fast is it? =

The dropdown queries a dedicated product index, not wp_posts. On a
1000-product catalog a query typically answers in single-digit
milliseconds; the 50 ms budget covers the whole REST round trip.

= Does "noutbuk" really find "ноутбук"? =

Yes. The index stores a transliteration of every title, and the engine
also generates keyboard-layout variants of every query - the same
engine Zero Results Fixer uses.

= Can the dropdown show private or draft products? =

Never. Only published products are indexed and served.

= Does it slow my site down? =

The index updates on product save and rebuilds in chunks of 200; a
normal shop never notices it.

= Is anything sent to third parties? =

No. Search Instant works entirely on your site and sends nothing
anywhere.

== Changelog ==

= 1.0.0 =
* First release: live dropdown, index-driven queries, translit and
  layout tolerance, SKU boost, form replacement, widget, shortcode,
  Gutenberg block, REST endpoint with nonce and rate limit, HPOS
  support.

== Privacy & Data ==

Search Instant stores a product index in your own WordPress database.
Search queries are processed on your site; the optional rate-limit
counters are anonymous IP hashes stored as transients. Nothing is sent
to any external service.
