Custom search box to be included in a view
If you are trying to filter views result, then adding Custom Search block will not work.
To get this work you need to add Global: Combine fields filter under Add filter criteria, then select fields on which you want to filter the result from Choose fields to combine for filtering. Expose this field to display a search text field. Please check screenshot below: