containsAll method
Returns a Set of document id of those documents that contain all the
terms
.
Implementation
Set<String> containsAll(Iterable<String> terms) {
final byTerm = getPostings(terms);
Set<String> intersection = byTerm.docIds;
for (final docPostings in byTerm.values) {
intersection = intersection.intersection(docPostings.keys.toSet());
}
return intersection;
}