Smart Search Integration
WP Engine Smart Search AI provides AI-powered product search for Commerce Connect sites. It automatically indexes your BigCommerce products synced to WordPress® and enables advanced search features including semantic search, faceted filtering, and intelligent recommendations.
Overview
Section titled “Overview”What Smart Search does:
- Indexes all BigCommerce products synced via Commerce Connect
- Provides semantic (meaning-based) search powered by AI
- Handles misspellings and typos automatically
- Supports faceted filtering (price ranges, attributes, categories)
- Delivers real-time search results as products update
Requirements:
- WP Engine Premium or Headless Platform plan
- Commerce Connect plugin installed and configured
- Products synced from BigCommerce
- Block Theme (for faceted search blocks)
Installation & Setup
Section titled “Installation & Setup”Step 1: Enable Smart Search License
Section titled “Step 1: Enable Smart Search License”- Log in to WP Engine User Portal
- Navigate to Products → Smart Search
- Select the environment(s) where Commerce Connect is installed
- Wait for “Ready to Use” status (green checkmark)
The WP Engine AI Toolkit plugin will be automatically installed.
Step 2: Initial Product Sync
Section titled “Step 2: Initial Product Sync”Critical: You must perform a one-time sync before configuring settings.
- Go to WP Admin → WP Engine AI Toolkit → Smart Search
- Click the Index tab
- Click Index Now button
- Wait for sync to complete (may take significant time for large product catalogs)
What gets indexed:
- All synced BigCommerce products
- Product titles and descriptions
- Product pricing
- Product attributes and variants
- Product categories and tags
- Custom fields (when configured)
Step 3: Configure Search Settings
Section titled “Step 3: Configure Search Settings”After initial sync completes, configure search behavior:
- Go to Configuration tab
- Choose your search type (see Search Types below)
- Click Save Configuration
- Important: Re-run sync after any configuration changes
Search Types
Section titled “Search Types”Full Text Search (Default)
Section titled “Full Text Search (Default)”Traditional keyword matching with smart features:
Stemming:
- Reduces words to root forms
- Example: Search “running shoes” matches “run shoe”
Fuzzy Matching:
- Tolerates 1-2 letter typos per word
- Example: Search “tible” returns products with “table”
Best for: Simple product catalogs, exact match requirements
Semantic Search (AI-Powered)
Section titled “Semantic Search (AI-Powered)”Analyzes meaning and context, not just keywords:
How it works:
- Understands word relationships and intent
- Example: Search “kitchen” returns kitchen products even without the word “kitchen” in descriptions
- Example: Search “gift for mom” returns products categorized as gifts
Configuration:
- Select Semantic card in Configuration
- Add fields to analyze:
post_content,post_title,post_excerpt - Field selection limited to ~500 words per instance
- Click Save Configuration
- Re-run sync
Best for: Large catalogs, descriptive product content, conversational search queries
Hybrid Search (Recommended)
Section titled “Hybrid Search (Recommended)”Combines Full Text + Semantic search:
Advantages:
- Balances exact matches with contextual understanding
- Adjustable weighting slider between the two approaches
- More 50% Full Text = prioritizes exact matches
- More 50% Semantic = prioritizes contextual relevance
Best for: Most Commerce Connect sites
Product Indexing
Section titled “Product Indexing”What Gets Indexed Automatically
Section titled “What Gets Indexed Automatically”Commerce Connect products are treated as WooCommerce products by WordPress®. Smart Search automatically indexes:
- Product post type (
product) - Product fields:
- Title (
post_title) - Description (
post_content) - Short description (
post_excerpt) - SKU
- Pricing
- Attributes (size, color, material, etc.)
- Categories
- Tags
- Title (
Custom Field Indexing
Section titled “Custom Field Indexing”If you’ve added custom fields via ACF or other plugins:
- Go to Configuration → Models
- Toggle on your custom post meta fields
- Assign field weights (higher = more important)
- Save and re-sync
Example custom fields:
- Brand name
- Material composition
- Care instructions
- Sustainability certifications
Real-Time Updates
Section titled “Real-Time Updates”After initial sync, Smart Search automatically updates when:
- New products are synced from BigCommerce
- Existing products are updated
- Products are deleted
- Product attributes change
No manual re-sync required for content updates.
Adding Search to Your Site
Section titled “Adding Search to Your Site”Search Block (Basic)
Section titled “Search Block (Basic)”Use the default WordPress® search block with Smart Search enabled:
- Edit any page or template in Block Editor
- Add Search block
- Configure display options (button text, placeholder, etc.)
- Publish
Smart Search automatically powers all search queries.
Faceted Search Blocks (Advanced)
Section titled “Faceted Search Blocks (Advanced)”Requirements: Block Theme only (not supported in classic themes)
Range Facet (Price Filtering)
Section titled “Range Facet (Price Filtering)”- Add Range Facet block to search results template
- Configure:
- Field: Product price (
_pricemeta key) - Min/Max: Set price range boundaries
- Step: Price increment (e.g., $10)
- Field: Product price (
- Customize labels and styling
Example: “$0 - $500” slider
Filter Facet (Category/Attribute Filtering)
Section titled “Filter Facet (Category/Attribute Filtering)”- Add Filter Facet block to search results template
- Configure:
- Taxonomy: Product categories or tags
- Display: Checkboxes or dropdown
- Limit: Number of options to show
- Customize appearance
Example: Filter by “Color”, “Size”, “Material”
Active Filters Facet (Display Selected Filters)
Section titled “Active Filters Facet (Display Selected Filters)”- Add Active Filters Facet block
- Shows currently applied filters
- Users can click to remove individual filters
Example: “Color: Blue × Size: Large ד
Search Promotions & Custom Results
Section titled “Search Promotions & Custom Results”Promote Specific Products
Section titled “Promote Specific Products”Feature products at the top of search results:
- Go to Search Promotions tab
- Click Add Promotion
- Select products to promote
- Drag to reorder (top = highest priority)
- Save
Use cases:
- Promote seasonal products
- Feature new arrivals
- Highlight sale items
- Boost slow-moving inventory
Custom Search Results
Section titled “Custom Search Results”Define exact results for specific search phrases:
- Go to Custom Search Results tab
- Enter search phrase (e.g., “shipping policy”)
- Select specific products or pages to return
- Save
Use cases:
- Map common questions to help pages
- Direct brand searches to brand pages
- Override default results for ambiguous queries
Synonyms
Section titled “Synonyms”Create synonym groups so search understands product terminology:
- Go to Synonyms tab
- Add synonym group (2-32 words)
- Save and re-sync
Examples:
- “laptop, notebook, computer”
- “couch, sofa, loveseat”
- “dress, gown, frock”
- “sneakers, trainers, running shoes”
Benefits:
- Makes search intuitive for customers
- Accounts for regional terminology differences
- Captures brand-specific terms
Configuration Best Practices
Section titled “Configuration Best Practices”For Small Product Catalogs (<100 products)
Section titled “For Small Product Catalogs (<100 products)”Recommended:
- Use Full Text Search with Fuzzy matching
- Enable Stemming
- Set Fuzzy distance: 1
- Skip Semantic Search (unnecessary overhead)
For Medium Product Catalogs (100-1,000 products)
Section titled “For Medium Product Catalogs (100-1,000 products)”Recommended:
- Use Hybrid Search
- Weight: 60% Full Text / 40% Semantic
- Enable Prioritize Recent Content (30-day window)
- Add synonyms for common product terms
For Large Product Catalogs (1,000+ products)
Section titled “For Large Product Catalogs (1,000+ products)”Recommended:
- Use Hybrid Search
- Weight: 40% Full Text / 60% Semantic
- Add comprehensive synonym groups
- Use faceted search blocks extensively
- Configure Search Promotions for key products
For Descriptive/Editorial Product Content
Section titled “For Descriptive/Editorial Product Content”Recommended:
- Use Semantic Search (70%+)
- Index
post_contentfield with full weight - Add custom fields to index (brand, materials, etc.)
- Skip Fuzzy matching (semantic handles variations)
Performance Optimization
Section titled “Performance Optimization”Reduce Initial Sync Time
Section titled “Reduce Initial Sync Time”Large catalogs may take significant time to index. To optimize:
- Start with essential fields only in Configuration
- Run initial sync
- Add custom fields incrementally
- Re-sync after each addition
Prioritize Recent Products
Section titled “Prioritize Recent Products”Enable Prioritize Recent Content to surface new products:
- Go to Configuration → Prioritize Recent Content
- Select prioritization window (7-365 days)
- Available for Full Text and Hybrid only
Use case: Boost recently added products in search results
Troubleshooting
Section titled “Troubleshooting”Products Not Appearing in Search Results
Section titled “Products Not Appearing in Search Results”Check:
- Initial sync completed successfully
- Products are published in WordPress® (not draft)
- Product post type enabled in Configuration → Models
- Search index not corrupted
Fix:
- Go to Index tab
- Click Delete search data
- Re-run sync with Index Now
Search Returns Irrelevant Results
Section titled “Search Returns Irrelevant Results”Causes:
- Semantic Search weight too high
- Insufficient synonym configuration
- Poorly written product descriptions
Fix:
- Adjust Hybrid Search weighting (increase Full Text %)
- Add synonym groups for product terminology
- Improve product descriptions in BigCommerce
Faceted Blocks Not Working
Section titled “Faceted Blocks Not Working”Causes:
- Classic theme in use (facets require Block Theme)
- Facet field not indexed
- Taxonomies not assigned to products
Fix:
- Switch to Block Theme
- Ensure facet field is indexed in Configuration
- Verify products have categories/tags assigned in BigCommerce
Real-Time Updates Not Syncing
Section titled “Real-Time Updates Not Syncing”Causes:
- WP Engine AI Toolkit plugin deactivated
- Webhook failures between BigCommerce and WordPress®
Check:
- Plugin is active in Plugins page
- Commerce Connect webhooks are working (see Troubleshooting → Webhook Failures)
- Re-enable Smart Search license if needed
Sync Takes Too Long
Section titled “Sync Takes Too Long”For very large catalogs (10,000+ products):
- Contact WP Engine support to increase sync timeout
- Consider indexing in stages:
- Index product titles/descriptions first
- Add attributes/custom fields later
- Run sync during low-traffic periods
Integration with Commerce Connect Blocks
Section titled “Integration with Commerce Connect Blocks”Search Box in Header
Section titled “Search Box in Header”Add Smart Search-powered search to your site header:
- Edit header template in Site Editor
- Add Search block
- Configure:
- Show/hide search button
- Placeholder text: “Search products…”
- Button text: “Search”
- Style to match theme
Product Grid with Search
Section titled “Product Grid with Search”Combine search with product display:
- Create search results template
- Add Search block at top
- Add Products Grid block below
- Products Grid automatically filters based on search query
Search Results Page Customization
Section titled “Search Results Page Customization”- Edit Search Results template in Site Editor
- Add Faceted Search blocks (Range, Filter, Active Filters)
- Add Products Grid block for results
- Add Products Counter block to show result count
- Customize layout and styling
Advanced: Custom Search Implementation
Section titled “Advanced: Custom Search Implementation”Using REST API
Section titled “Using REST API”Smart Search provides a REST API endpoint for custom implementations:
// Example: Custom AJAX product searchfetch('/wp-json/wpe-ai-toolkit/v1/search', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ query: 'blue dress', post_type: 'product', limit: 20, }),}) .then((response) => response.json()) .then((data) => { // Handle search results console.log(data.results); });Filtering by Product Attributes
Section titled “Filtering by Product Attributes”Add custom filters to search queries:
<?php// Filter products by price range in searchadd_filter('wpe_smart_search_query_args', function($args, $query) { if (isset($_GET['max_price'])) { $args['meta_query'][] = [ 'key' => '_price', 'value' => $_GET['max_price'], 'compare' => '<=', 'type' => 'NUMERIC', ]; }
return $args;}, 10, 2);Limitations & Considerations
Section titled “Limitations & Considerations”Block Theme Requirement:
- Faceted search blocks only work with Block Themes
- Classic themes must use shortcodes or custom implementations
Semantic Search Field Limit:
- ~500 words analyzed per field
- Long product descriptions may be truncated
- Choose most relevant fields for indexing
Initial Sync Required:
- Must sync data before configuration changes take effect
- Re-sync required after any Configuration changes
- Can’t skip initial sync step
License Per Environment:
- Separate license needed for dev/staging/production
- Contact Account Manager for multi-environment setup
Plugin Must Stay Active:
- Deactivating WP Engine AI Toolkit stops real-time updates
- Products won’t appear in search if plugin is disabled
Related Documentation
Section titled “Related Documentation”- Product Sync - How BigCommerce products sync to WordPress®
- Products Grid Block - Display search results
- Products Filters Block - Add filtering to product grids
- SEO Plugins - Optimize product pages for search engines