search breaks string into multiple and-where queries