Overview
Semantic redirects use AI to understand the intent and meaning behind search queries, automatically directing customers to relevant pages instead of showing search results. Unlike keyword-based redirects, semantic matching understands variations and related terms, providing a more flexible and intelligent redirect experience.Before you start
- Semantic redirects is currently in beta. Contact support to enable this feature for your account.
- Redirects only work for text search queries. They don’t apply to image search, similar product search, or browse requests.
- When a redirect is triggered, customers see no search results—they’re immediately directed to the target URL.
- Your frontend integration must handle the
_meta.redirectresponse from the Search API.
Prerequisites
Ensure your frontend implementation checks for the_meta.redirect field in search responses and navigates to the provided URL. See the Search API documentation for technical details.
Steps
- Go to Settings → Semantic Redirects in the Layers dashboard.
- Click Create Redirect.
- Enter the search terms that should trigger the redirect:
- Add the primary term or phrase customers might search for
- The semantic matching will automatically understand related variations
- Enter the target URL:
- Provide the full URL where customers should be redirected
- Use absolute URLs (e.g.,
https://yourstore.com/pages/contact-us)
- Save and enable the redirect.
Common use cases
Customer support queries
Redirect searches for help-related terms to your support page: Search term: “customer service” Redirect URL:https://yourstore.com/pages/contact-us
The semantic matching will also catch variations like “help”, “support”, “contact us”, “need help”, etc.
Brand landing pages
Direct brand-specific searches to dedicated brand pages: Search term: “nike” Redirect URL:https://yourstore.com/collections/nike
The semantic matching will also catch variations like “nike shoes”, “nike products”, “nike brand”, etc.
Policy and information pages
Route policy-related queries to relevant information: Search term: “return policy” Redirect URL:https://yourstore.com/policies/refund-policy
The semantic matching will also catch variations like “returns”, “refund”, “how to return”, etc.
Promotional campaigns
Send sale-related searches to campaign landing pages: Search term: “sale” Redirect URL:https://yourstore.com/collections/sale
The semantic matching will also catch variations like “clearance”, “discount”, “deals”, “what’s on sale”, etc.
How semantic matching works
Semantic redirects use AI to understand query intent, not just exact keyword matches. This means:- “need help” matches a redirect configured for “customer service”
- “how do I return something” matches a redirect configured for “return policy”
- “where can I get support” matches a redirect configured for “help”
Testing redirects
Use the Test Text Search tool to verify your semantic redirects:- Enter a search query that should trigger your redirect.
- Check the response for the
_meta.redirectfield. - Verify the redirect URL is correct.
- Test variations of your target terms to ensure semantic matching works as expected.
Best practices
- Use general terms - Configure redirects with broad, general terms rather than specific variations. The semantic matching will handle related queries automatically.
- Test thoroughly - Verify redirects work for expected queries and don’t trigger unexpectedly for product searches.
- Monitor search analytics - Review which queries trigger redirects to identify gaps or opportunities for additional redirects.
- Use absolute URLs - Always provide full URLs including the protocol (https://) to ensure redirects work correctly.
- Avoid over-redirecting - Don’t redirect queries that should show product results. Reserve redirects for informational queries, support requests, and specific landing pages.
Troubleshooting
Redirect not triggering:- Verify that Semantic Redirects is enabled for your account (contact support if needed)
- Check that the redirect is enabled in Settings → Semantic Redirects
- Test the query in the Test Text Search tool to see the API response
- Verify the URL is correct and uses the full absolute path
- Check if another redirect with similar terms might be matching first
- Refine your search terms to be more specific to informational queries
- Test with various queries to identify false positives
- Consider using more specific terms that clearly indicate non-product intent
See also
- Semantic Redirects - Feature overview and technical details
- Search API - Technical documentation for the
_meta.redirectresponse field - Test text search - Testing and debugging search queries