Allow source and user_id to be included when setting a document