Today, I got a requirement to set up the auto-suggestion (Predication) for the SXA search, here are the steps to configure.
There are three options available but we wanted to configure the predications one
By default the search box will give you 404 when we do the query.
As per the Sitecore Documents, We need to configure the Suggester component and handler
https://doc.sitecore.com/users/sxa/18/sitecore-experience-accelerator/en/walkthrough--adding-search-functionality-to-your-page.html
Sitecore has also provided an example here https://doc.sitecore.com/developers/90/platform-administration-and-architecture/en/using-solr-auto-suggest.html with the sample configuration but the catch is in the sample configuration the name of the suggested is mySuggester so we need to make sure to update the correct name otherwise the search API will give you 404.
Steps to update - Go to your Docker build folder Example path docker\build\solr\Sitecore.zip - Unzip the file and update the
No comments:
Post a Comment