Model
QueryResult
Magento\Search\Model\QueryResult
What it does
This class represents a search query result object that encapsulates the search text and the number of results found.
Developers use this as a data transfer object (DTO) to pass search query information and result counts between different layers of the application, particularly when displaying search suggestions or autocomplete functionality.
Public Methods
- getQueryText()
- getResultsCount()