Replace all_terms = true with size = 0