how to add a search button in the view header

how to add a search button in the view header

Could you please clarify how to add a search button in the view header?
I appreciate if you can give more details and step introduction.