Smarter Search for Products & Posts
Smarter Search for Products & Posts
Description
** Smarter Search for Products & Posts ** enhances the standard search in WordPress and WooCommerce by using AI, powered by the Groq API.
Natural language queries are parsed into structured JSON filters (category, name, price, SKU), producing more relevant search results for products and content.
If AI processing fails or times out, the plugin automatically falls back to the built‑in WooCommerce/WordPress search.
Features
* Extracts product name, category, min_price, and max_price from natural language queries.
* SKU-aware:
* Exact SKU direct redirect to product page.
* Partial SKU product search with SKU filter.
* Mixed results template: display products + posts/pages together.
* Customizable form styling: adjustable input width/height, aligned margins.
* Multisite compatible with network activation.
* Graceful fallback: if the AI API fails, plugin reverts to standard search.
External Service Disclosure
This plugin connects to the Groq API.
The plugin sends only the user’s search query text to Groq in order to compute structured search parameters.
No personal or identifying user data is sent.
The Groq API Terms of Service and Privacy Policy apply to data transmitted through this plugin.
You must provide your own Groq API key, available free at https://console.groq.com/keys.
Configuration
- Go to Settings Smarter Search for WooCommerce and WordPress Posts.
- Enter your Groq API Key (available at https://console.groq.com/keys).
- Choose your preferred LLM model and temperature.
-
(Optional) Update the system prompt to customize JSON extraction. Example:
json
{"category":"hiking-boots","name":"waterproof","min_price":50,"max_price":200} -
Customize search input dimensions and styling options.
- Use the shortcode
[crashguru_search]to display the search form anywhere on your site.
Usage
Basic Search Examples:
* “red shoes under $100” Finds red shoes with max price $100
* “SKU12345” Direct redirect to product with that exact SKU
* “wireless headphones” AI extracts relevant product attributes
* “hiking gear in outdoor category” Searches outdoor category for hiking-related products
Shortcode Usage:
[crashguru_search placeholder=”Your Placeholder Text”]
Installation
- Upload the plugin folder to
/wp-content/plugins/or install via Plugins Add New Upload Plugin. - Activate the plugin via Plugins Installed Plugins.
- (Multisite) Can be Network Activated.
- Flush permalinks after activation: Settings Permalinks Save Changes.
Faq
Yes, you need a free Groq API key from https://console.groq.com/keys. The plugin cannot function without it as it powers the AI search capabilities.
The plugin works with WordPress search, but WooCommerce is required for product-specific features like SKU search, price filtering, and product categories.
Yes, the plugin is completely free. You only need a free Groq API account, which provides generous usage limits for most websites.
The plugin includes graceful fallback functionality. If the Groq API fails or times out, it automatically reverts to the standard WordPress/WooCommerce search.
Yes! In the admin settings, you can modify the AI prompt to better suit your specific product catalog and search requirements.
Yes, the plugin is fully compatible with WordPress multisite and can be network activated.
Only the user’s search query text is sent to Groq for processing. No personal information, user data, or site content is transmitted.
Reviews
Changelog
1.0.0
- Initial release
- AI-powered search with Groq API integration
- Natural language query processing and JSON parameter extraction
- SKU search functionality with exact and partial matching
- Mixed search results template for products and posts
- Customizable search form styling and dimensions
- Multisite support with network activation
- Graceful fallback to standard WordPress search
- Comprehensive admin settings panel
- Internationalization support with translation files
- Security features including nonce verification and data sanitization