Read this blog on Magento 2 create custom search for more information.
Sometimes it’s needed to have a specific type of Index, which is either not included in Magento by default or belongs to some third-party extension. Read on to find out how you can easily create a custom search engine for Magento
Let’s say your client wants his customers to be able to search by brand or SKU, with all other fields removed from the search, and wishes for custom URL for each one of those search types.
- Magento 2 no longer provides the option to set the comparable method for MySQL engine. In Magento 1 administrators could use ‘like’, ‘fulltext’ or ‘combine’ method. Magento 2 comes with a full-text search method that’s not working well for larger stores.
- Magento 2 Open Source allows MySQL as a Magento search engine only. The Commerce edition provides the merchants the option to work with Elasticsearch, MySQL, and Solr.
- You can find the search settings at Configuration > Catalog > Catalog > Search Engine Optimization.
So how can you make a better Magento 2 Custom search engine?
Being a CMS Magento has a ton of plugins that can add functionality to your store. On Magento 2, all that you need to do is install the ExpertRec site search extension from the marketplace. This will automatically replace your default search and add a search bar that has facets inbuilt. You can do further customization in the Expertrec Dashboard that comes along with the plugin. This will add a more powerful and customizable search engine to your website.