update document and options for better scoring.