=== Khoji Search ===
Contributors: khoji
Tags: search, semantic search, site search, ajax search, algolia alternative
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Semantic site search that runs entirely in the visitor's browser. No server, no per-query fees, total privacy. Press Ctrl+K.

== Description ==

Khoji adds meaning-based search to your WordPress site. A visitor searching "refund my order" finds your "Returns policy" page — even though the words don't match.

Unlike hosted search services, Khoji's engine runs inside your visitor's browser using a tiny WebAssembly embedding model:

* **No server, no per-query cost** — pricing stays flat no matter your traffic. Free up to 200 pages.
* **Private by architecture** — queries and content never leave the visitor's device. No cookies, no tracking. GDPR/DPDP friendly.
* **Instant keyword results** (BM25) while the semantic model warms up in a background worker.
* **Polished Ctrl+K / ⌘K palette** with keyboard navigation, dark mode, and your accent color. Shadow DOM — no CSS conflicts.
* **Zero maintenance** — it reads your existing wp-sitemap.xml. Content changes are picked up automatically.

The free tier covers 1 site and 200 pages with a small "Search by Khoji" badge. Pro (₹999/$12 per month) indexes 2,000 pages and removes the badge.

== Installation ==

1. Install and activate the plugin.
2. That's it — press Ctrl+K on your site. Optional settings live under Settings → Khoji Search.

== Frequently Asked Questions ==

= Does it send my content or my visitors' searches to your servers? =
No. The index is built and queried inside each visitor's browser. Only the widget script file is fetched from our servers.

= Will it slow my site down? =
The widget is a 14 KB async script. Indexing and the ML model run in a background Web Worker after page load, so Core Web Vitals are unaffected.

= Does it work with WooCommerce? =
Yes — products in your sitemap are indexed like any page, searchable by meaning.

== Changelog ==

= 0.1.0 =
* Initial release: sitemap indexing, hybrid BM25 + semantic search, Ctrl+K palette, settings page.
