I am new to magento2, I wanted to know how we can bring category names also to the quick search. For eg: When I search using a keyword 'Bag', I should get a list off all products under the category "Bag" + all products that have the keyword 'bag' in its title , description or SKU. Thanks
You need the category name indexed in the product search. It is quite complicated to have an index which is always up to date (especially when you are editing a category, you need to reindex all products belonging to this category).
You may also try our ElasticSuite module (https://github.com/Smile-SA/elasticsuite), which bring this feature enabled out of the box.