def sims_by_id(self, docid):
result = self.id2sims.get(docid, None)<EOL>if result is None:<EOL><INDENT>self.qindex.num_best = self.topsims<EOL>sims = self.qindex.similarity_by_id(self.id2pos[docid])<EOL>result = self.sims2scores(sims)<EOL><DEDENT>return result<EOL>
Find the most similar documents to the (already indexed) document with `docid`.