parses generic search queries (fixes#49)