Add public field to documents