How to structure a Boolean search