documentPostings method
Filters the PostingsMap by document ids.
Returns a subset of the PostingsMap instance that only contains entries
where a document id in docIds
has a key in the entry's postings lists.
Implementation
PostingsMap documentPostings(Iterable<String> docIds) =>
PostingsMap.from(this)
..removeWhere((key, value) =>
value.keys.toSet().intersection(docIds.toSet()).isEmpty);