Adding a search section

I want it to automatically write the text in the text field to the filter box of the list view. How can I do it?