Unifying the type between archive/page/namespace is going to have clashes. For example we index namespaces with the namespace id as the document id, so there can't be overlapping pages.
We previously tracked down most of the places that deal with document ids and labeled them as such, it might be possible to add a prefix to them, as elasticsearch considers document id's to be strings anyways.