Setting stat on doc instead of _type