I want to search product collection matching only with products name not from another like description, sku, attributes etc in Magento 2 header searching.
First you need make every attribute's property Use in Search to NO. from admin.
Admin ->Store > Product> Attribute.
Fine all attributes which has the value Yes for Use in Search.
Make this field value to yes only for the attribute "Product Name" .
Then do an indexing from Index management and then see your result.