add type: "document" to documents