pub(crate) fn partition_by_type<T>(collection: T) -> HashMap<DocType, DocQuery>where T: IntoIterator<Item = DocId>,
Given a list of DocId, split them up into queries, by type.