update document indexing