WordPress & WooCommerce
The Shoof AI Search plugin replaces WordPress search with Shoof AI. It indexes your products, posts and pages, keeps the index up to date as you edit, and switches your search boxes and results page over once the first sync is done.
It works with any theme, classic or block, with WooCommerce, and with WPML and Polylang for sites in English and Arabic.
Requirements: WordPress 6.3 or later and PHP 7.4 or later.
Install and connect
Section titled “Install and connect”-
Install the plugin. In wp-admin, go to Plugins → Add New → Upload Plugin, choose the
shoof-searchzip file and select Install Now, then Activate. -
Connect your site. Go to Settings → Shoof AI Search and select Connect to Shoof AI. You’ll be taken to Shoof AI to sign in (or create an account), pick an app or create one, and approve. Your site receives its keys automatically.
-
Wait for the first sync. Indexing starts right away; the settings page shows its progress. Until it finishes, your site keeps using WordPress search, so visitors never search an empty index.
-
Search your site. Once the sync is done, your search boxes show instant results as visitors type, and searches go to the Shoof AI results page.
Connect with keys instead
Section titled “Connect with keys instead”If you’d rather paste keys, select Enter API keys manually on the settings
page and fill in the API URL (https://api.shoofai.co), the app ID, the search
key and the admin key from the dashboard. Or from WP-CLI:
wp shoof connect --app=<app-id> --search-key=shf_pub_… --admin-key=shf_adm_… --host=https://api.shoofai.cowp shoof sync --fullTo keep keys out of the database, define them in wp-config.php. They then win
over the stored values and lock the fields in the settings page:
define( 'SHOOF_API_URL', 'https://api.shoofai.co' );define( 'SHOOF_APP_ID', 'my-store' );define( 'SHOOF_SEARCH_KEY', 'shf_pub_…' );define( 'SHOOF_ADMIN_KEY', 'shf_adm_…' );A connection with only a search key can search but not index. Use this when another system fills the app, such as a headless store.
What gets indexed
Section titled “What gets indexed”By default, published products, posts and pages. Choose any public post type under Content to index in the settings. The plugin skips:
- password-protected posts;
- hidden products, and out-of-stock products when WooCommerce hides them;
- the WooCommerce cart, checkout and account pages;
- posts that Yoast SEO or Rank Math mark as noindex.
Each item is sent with its title, text, excerpt, URL, featured image, author, categories (with their full paths), tags and dates. Products also carry their SKU and their variations’ SKUs, price, regular and sale price, currency, stock, rating, brand (from WooCommerce Brands, Perfect Brands or YITH Brands) and attributes, so searching for any variation’s SKU finds the product.
Page builders work too. Text inside shortcodes is indexed and the tags are dropped, so pages built with Divi, WPBakery, Avada and similar builders keep their text. Synced patterns are indexed with every post that uses them. See Custom fields and content to send more, or less.
Languages
Section titled “Languages”With WPML or Polylang, each translation is its own record, linked to the others, so visitors searching in Arabic get Arabic results and the right-to-left layout.
Staying in sync
Section titled “Staying in sync”You don’t need to do anything after the first sync. Changes are queued and sent in the background within seconds:
- saving or deleting a post, page or product;
- WooCommerce stock, price and variation changes;
- editing a category or tag (its posts are re-sent, and so are the posts in its child categories, whose paths contain its name);
- imports and other plugins changing the featured image or a custom field you send, and WP All Import saves, fast mode included;
- changing a page’s slug or parent (its child pages are re-sent with their new URLs). Saving the permalink settings starts a full sync.
Changes written straight to the database, bypassing WordPress, are only picked
up by a full sync. Start one from the settings page with Sync everything now,
or with wp shoof sync --full.
A full sync rebuilds the index next to the live one and swaps it in when it’s done, so search keeps working throughout. Items that no longer exist on the site are removed at the end.
When you reach your plan’s record limit
Section titled “When you reach your plan’s record limit”Search keeps working with what’s already indexed, and deletions still go through. New items, and the changes queued with them, wait: the plugin shows a notice with a link to upgrade, Site Health reports it, and it retries every hour. A full sync pauses where it stopped and resumes once there’s room, while the live index keeps serving. See Plans and limits.
Staging and copied sites
Section titled “Staging and copied sites”The plugin remembers your site’s address when it connects. On a copy with a different address, such as a staging or local site, syncing pauses so the copy can’t change your live search index, and a notice asks which it is:
- The site moved: syncing resumes, and everything is sent again with the new
address (
wp shoof movedfrom WP-CLI). - This is a copy: disconnect it, then connect it to an app of its own.
Search keeps working on the copy meanwhile. Switching to https, or adding or
dropping www., doesn’t count as a move.