How can i get advance search block on home page magento 2. i want to show specific attributes in drop-down on home page.
Magento’s default catalog search can be a powerful tool. It’s versatility is something every customer can appreciate.
One of the coolest features of the built-in advanced search is the ability to search by attributes assigned to a product. But what if your client’s plans for search are a bit different, and advanced search is too cluttered for his or her needs?
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.
Attached in this article is a little “module” that enables you to use your custom URL for advanced search.
Not only that, but you can specify a single attribute you want to search by!
You could even use this to implement search by brand or SKU.
Keep in mind, though, that this is a custom developed module, without admin options, so everything you want to do with this search module has to be done by code.