build

Build a DocIdSet from the accumulated doc IDs.