

But all of these examples talk about modifying the solrconfig.xml file in your index directly. There is even some Sitecore documentation around it, although it’s more general and not specific to SXA.
Solr suggester vs searching how to#
There are multiple posts, Tamer’s post for example, that already talk about how to add a suggester. So, if you sent “artif” to the suggester, it might return results like “Artificial”, “Artificial Intelligence”, etc… It’s pretty cool that solr has this feature already and that you don’t have to build it yourself. You are welcome to dive deeper into the full documentation around the Suggester search component in Solr, but in short, the suggester is a “search component” that you can add to your solr configuration that will return suggestions for search terms, based on a configured field, for the term sent to the api. How exactly to add and configure a search suggester component in Solr for use in the SXA Search Box component. Well, that’s what we’re going to cover in this post. Huh? What is a “suggester”? Is this something that’s already configured? It doesn’t sound like it… How do you configure a “suggester”? The second link even highlights that, in order to use Show predictions, you must use “…a suggester called sxaSuggester.”

