Elastic Path Commerce Development

Search suggestions

Search suggestions

Search suggestions enable the user to select from one or more alternate search phrases if their original search phrase returned no results. The alternate search phrases attempt to correct any potential typos or misspellings that the original search phrase contains.

Key classes and files

  • SolrSpellIndexSearcherImpl - Parses a supplied query, and checks the spelling index to see if there are any suggestions for terms in that query.
  • SolrIndexSearchServiceImpl - A service for dispatching search requests to the SolrIndexSearcher.
  • ProductIndexBuilder - Creates a spelling index using the product index's content field.
  • SearchServiceImpl - A service for searching the product catalog.

Configuration

To configure Search Suggestions, see the Search Settings page.