Patent ID: 8352474

Claim:
A method comprising: at a search system with one or more processors and memory: obtaining a plurality of pseudo-documents for a set of documents, wherein each pseudo-document in the plurality of pseudo-documents: corresponds to a respective set of search results generated by executing a respective basis query over the set of documents; and includes document identifiers for one or more documents in the respective set of search results; generating an index of the plurality of pseudo-documents, wherein the index provides an indication, for each of a plurality of respective documents from the set of documents, of the pseudo-documents that include a document identifier for the respective document; after generating the index, receiving a first document-query that includes a representation of a first document from the set of documents; and in response to receiving the first document-query: identifying, using the index, a first set of one or more pseudo-documents that include a document identifier of at least one document having a predefined relationship to the first document; identifying a first set of basis queries corresponding to pseudo-documents in the first set of one or more pseudo-documents; and generating a result that is based on the first set of basis queries.