Allow transform options when serialize the mongoose document to sync with elasticsearch server.