Search Module
Autocomplete
This class aggregates autocomplete suggestions from multiple data providers (like products, categories, search terms) when users type in the search bo...
Autocomplete\Item
This class represents a single autocomplete suggestion item in Magento's search functionality. Developers use this class to create and manage individu...
EngineResolver
This class determines which search engine (MySQL, Elasticsearch, OpenSearch, etc.) is currently configured and active in Magento 2. Developers use it...
PopularSearchTerms
This class determines whether a search term is popular enough to be cached based on store configuration. Developers use this to optimize performance b...
Query
This class manages search queries in Magento 2's search functionality. Developers use it to store, retrieve, and track search terms entered by custome...
QueryResult
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 tr...
ResourceModel\Query
This resource model manages database operations for search queries in Magento 2. Developers use it to save, load, and track search query data includin...
ResourceModel\SynonymGroup
This resource model manages database operations for search synonym groups in Magento 2. Developers use it to retrieve synonym configurations scoped to...
ResourceModel\SynonymReader
This resource model handles database operations for reading search synonym groups in Magento 2. Developers use it to retrieve synonym configurations f...
Search
This class serves as a Web API-compatible wrapper for Magento's core search functionality. It extends the framework's base Search class and implements...
SearchEngine
This class serves as the main entry point for executing search queries in Magento 2. Developers use this class when they need to perform search operat...
SearchEngine\Config
This class manages search engine feature configuration in Magento 2. Developers use it to check which features are supported by a specific search engi...
SearchEngine\Config\Data
This class manages the configuration data for Magento's search engine system. It extends the base Config Data class to provide cached access to search...
SearchEngine\Validator
This class validates the configured search engine in Magento 2 to ensure it's supported and properly configured. It checks against a list of excluded/...
Search\PageSizeProvider
This class provides the maximum page size limit for search results based on the currently configured search engine (like Elasticsearch, MySQL, etc.)....
SynonymAnalyzer
This class analyzes search phrases and finds synonyms for each word in the phrase. Developers use it to enhance search functionality by expanding sear...
SynonymGroup
This model manages synonym groups for search functionality in Magento 2, allowing merchants to define sets of interchangeable search terms (e.g., 'pan...
SynonymGroupRepository
This repository class manages synonym groups in Magento's search functionality, allowing developers to save, retrieve, and delete groups of synonymous...
SynonymReader
This class retrieves search synonyms for a given search phrase in the context of the current store view. Developers use it to load synonym groups that...
Synonym\DataProvider
This class provides data for the Synonym Groups UI component grid and forms in Magento's admin panel. Developers would use this to display, filter, an...
Synonym\MergeConflictException
This exception class is thrown when there's a conflict while merging synonym groups in Magento's search functionality. Developers encounter this when...