Suggestions
Magento\Elasticsearch\Model\DataProvider\Base\Suggestions
What it does
This class provides search query suggestions (autocomplete) functionality for Elasticsearch in Magento 2.
Developers use it to generate alternative search terms based on what customers type in the search box, helping improve search experience by offering relevant suggestions.
It handles querying Elasticsearch for phrase suggestions, scoring them, and optionally including result counts for each suggestion.
Public Methods
- getItems()
- isResultsCountEnabled()