How SearchJet Works
SearchJet has three parts: your site, which holds your content; the SearchJet service, which holds the search index and answers searches; and the search box your visitors type into. This page describes how they fit together.
1. Your content is indexed
Indexing copies your content to the SearchJet service, where it is stored as an index built for search.
With the WordPress plugin, indexing is a manual first step. After you save your API key under SearchJet > Settings, click Index Your Content. The plugin uploads your content to the service in batches. Until that finishes, search results are empty. It does not start by itself.
For each indexed item the plugin sends the title, full content, URL, author display name, images, categories, tags and language and, for WooCommerce products, SKU, price and stock status. It indexes the public post types that your site already includes in its own search, such as posts, pages and products. Admin-only content and password-protected posts are never sent.
With the REST API, you send documents yourself with POST /index/bulk and your private key. Each document needs an id; the other fields are up to you. Indexing requests are queued: the response contains a taskUid that you can check with GET /index/tasks/{taskUid}.
The service enforces your plan's limits on indexed pages and, on Free, on full reindexes (one per day). See Rate Limits.
2. The index stays in sync
After the first indexing run, the WordPress plugin sends changes to the service when you publish, update or delete content. You do not need to re-run Index Your Content for routine edits. Use SearchJet > Bulk Re-Index or SearchJet > Indexing if you want to rebuild the index, for example after changing which post types are indexed.
With the REST API, keeping the index in sync is your code's job: send new and changed documents with POST or PATCH on /index/bulk, and remove documents with DELETE /index/delete. The Index API page covers the details.
3. Searches go to the service
When a visitor types in the search box, their browser sends the search text to app.searchjetengine.com with your site's public search key. The service looks the query up in your index and returns matching results. Your WordPress database is not queried for the search.
Matching tolerates small spelling mistakes. On Pro and above, semantic search is also available. See the Search API for the parameters, such as filters, sorting and result limits.
4. Results are shown
In WordPress, instant results appear below the search box as the visitor types, and the plugin also takes over the search results page. How the results look is controlled under SearchJet > Search UI: theme style, colours, the number of results and which details to show (for example product thumbnails, prices and stock status).
What is sent to the service
- When you index or sync: the content fields listed above.
- On every search: the search text, sent from the visitor's browser with your public search key.
- Analytics: the search text, number of results, the page the visitor was on, the browser user agent and a session id. For clicks, the visitor's IP address is also sent.
If you have visitors in the EU, add the service to your privacy policy. The service stores your indexed content and your visitors' search queries.
What happens if the service is unavailable
Before you connect a valid API key, and whenever the service cannot be reached, WordPress visitors see your theme's own search results instead of an error. For other integrations, handle failed requests in your own code; see Error Handling.
Ready to set it up? Follow the Quick Start Guide.