check the doc id for the doc type