Quick Start Guide: WordPress and WooCommerce
This guide takes a WordPress or WooCommerce site from a fresh install to working instant search. If your site is not on WordPress, skip to Not on WordPress?.
Before you start
- WordPress 5.5 or later and PHP 7.4 or later.
- Administrator access to the site.
- A SearchJet account. The Free plan needs no credit card. See Prerequisites.
Step 1: Install the plugin
- In WordPress, go to Plugins > Add New and search for SearchJet Instant Search. Alternatively, upload the plugin files to
/wp-content/plugins/searchjet-instant-search. - Click Install Now, then Activate.
- A SearchJet item appears in the admin menu.
Nothing changes for visitors yet. Until a valid API key is saved, your theme's own search keeps working as before.
Step 2: Create an account and get your API key
- Sign up at app.searchjetengine.com/register.
- Add your site. The dashboard shows a one-time page with your API key. Copy it right away: the secret key is shown only once. If you miss it, use Regenerate secret key on the site's card under Sites. The old key stops working.
You can also open SearchJet > Dashboard in WordPress and click Start Setup Wizard, which walks you through the same steps.
Step 3: Connect the plugin
- Go to SearchJet > Settings.
- Paste the key into the SearchJet API Key field.
- Click Save Settings & Connect.
When the connection works, the page shows Connected Successfully!.
Step 4: Index your content
Indexing does not start by itself. Search results stay empty until you do this step.
- On SearchJet > Settings, click Index Your Content.
- Wait for it to finish. The plugin uploads your content to the service in batches.
The plugin indexes the public post types that your site already includes in its own search: posts, pages, products and similar custom post types. Admin-only content and password-protected posts are not indexed.
After this first run, the plugin sends changes when you publish, update or delete content.
The Free plan allows one full reindex per day and 1,000 indexed pages.
Step 5: Try it
Open your site and type in the search box. Results appear as you type, and the search results page is replaced by SearchJet results. Try a word with a small typo to see typo tolerance.
If results are empty, check that Index Your Content finished. See Troubleshooting Common Issues.
Step 6: Adjust how it looks
Go to SearchJet > Search UI to change the theme style, colours, the maximum number of results and which details are shown, such as product thumbnails, prices and stock status. A live preview shows your changes. Click Save Settings to apply them.
Going back to your theme's search
To stop using SearchJet without uninstalling it, go to SearchJet > Settings, tick Disable Search Override under Advanced Settings, and click Save Settings. You can also deactivate the plugin. Your index stays on the SearchJet service until you delete it in your account; the plugin does not delete it.
Not on WordPress?
SearchJet works with any site through the REST API at https://app.searchjetengine.com/api/v1. Laravel needs no package; it calls the API directly.
Index one document with your private key:
curl -X POST https://app.searchjetengine.com/api/v1/index/bulk \
-H "Authorization: Bearer YOUR_PRIVATE_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"documents":[{"id":"post-1","title":"Hello world","content":"My first indexed page.","url":"https://example.com/hello-world","type":"post"}]}'
The response contains a taskUid. Indexing is queued, so a document can take a moment to become searchable.
Search with your public search key:
curl "https://app.searchjetengine.com/api/v1/search?q=hello" \
-H "Authorization: Bearer YOUR_PUBLIC_KEY" \
-H "Accept: application/json"
Matches are returned in results. Searching needs the public key; indexing needs the private key. A 401 usually means the wrong key type.
For Laravel, follow Step-by-Step Installation & Configuration. For every endpoint, see the API Reference, the Index API and the Search API.