Get the documents grouped by parent and type.

The mapper needs to get the documents owned by some parent, and of some kind (type)