The Nearest Neighbor (NN) to a document is another document that has the largest similarity with it. There may be several NNs, if one wants the best n. Or, there may be a variable number, if NN is defined as having similarity above some threshold.