update nearest document vectors