How to search based on a Multi select category field in Craft 3? I have a blog section with multi select categories. I want to filter all the blogs based on that multi select categories in the website. When I tried

 .search('category:ui-ux OR category:web-designs')


the result blogs are not accurate. 

Category is a multi select field. So multiple category may assigned to one blog. I will list all these categories in my front end and need to filter blogs based on that.

How I will do this search?
For filtering entries based on relationships (categories/assets/users/tags/other entries), you need to use the relatedTo parameter, not the search parameter.

Here's an example: Filter based Search Form