add a setting to set custom id of documents

Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com>