SearchStax Managed Search service clients sometimes ask us about a solr.log message indicating that the Solr suggester search component failed to rebuild after an update.
2024-01-09 00:01:29.153 ERROR (qtp1047087935-1695338) [c:product s:shard1 r:core_node4 x:product_shard1_replica_n3] o.a.s.s.HttpSolrCall null:java.lang.IllegalStateException: suggester was not built
The critical phrase is:
suggester was not built
Solr’s suggestions feature is not normally enabled in Managed Search because it must be configured on a case-by-case basis. It builds an index of keywords from incoming queries. The “suggester” responds to an incoming query by serving up keywords to display as suggestions on the search page.
The “suggester was not built” error usually follows a flurry of malformed queries that cannot be integrated into the suggestion index.
The root cause is often query fields that are not defined in the Solr schema. Look in the solr.log files for index errors; fix the queries; update the schema; reload the indexes; and restart the suggester. The solution is likely to be along that path.
Restart Suggester in Site Search
To rebuild the Suggester in a SearchStax Site Search project, turn off Auto-Suggest from the Studio dashboard. Publish. Then turn it on again and publish.
Questions?
Do not hesitate to contact the SearchStax Support Desk.