Storing term substitution information in an index
View Patent ↗Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for storing, in an index associated with a document, a particular term that occurs in the document, wherein the particular term comprises n words, and wherein n is greater than 1; identifying a substitute term of the particular term; and in response to identifying the substitute term of the particular term, storing, in the index associated with the document, (i) the substitute term of the particular term, and (ii) data indicating that the substitute term spans the n words of the particular term.
1. A computer-implemented method comprising:
storing, in an index associated with a document, a particular term that occurs in the document, wherein the particular term comprises quantity m words, wherein the quantity m is greater than 1;
identifying a substitute term of the particular term, wherein the substitute term comprises quantity n separate words, and wherein the quantity n is greater than 1; and
in response to identifying the substitute term of the particular term, storing, in the index associated with the document, (i) each of the quantity n words of the substitute term of the particular term as a separate index entry, and (ii) for each respective index entry, data indicating the quantity m and data indicating a value between 1 and n inclusive, wherein the value reflects an order of the respective word within the quantity n words of the substitute term.
2. The method of claim 1 , further comprising:
storing, in the index associated with the document, a reference to the document in which the particular term occurs.
3. The method of claim 1 , wherein the substitute term for the particular term is identified based in part on a document context of the particular term in the document.
4. The method of claim 1 , further comprising:
storing, in the index associate with the document, information indicating that the substitute term of the particular term (i) is a substitute term of the particular term, or (ii) is not a term that occurs in the document.
5. A computer storage medium encoded with instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:
storing, in an index associated with a document, a particular term that occurs in the document, wherein the particular term comprises quantity m words, wherein the quantity m is greater than 1;
identifying a substitute term of the particular term, wherein the substitute term comprises quantity n separate words, and wherein the quantity n is greater than 1; and
in response to identifying the substitute term of the particular term, storing, in the index associated with the document, (i) each of the quantity n words of the substitute term of the particular term as a separate index entry, and (ii) for each respective index entry, data indicating the quantity m and data indicating a value between 1 and n inclusive, wherein the value reflects an order of the respective word within the quantity n words of the substitute term.
6. The storage medium of claim 5 , further comprising:
storing, in the index associated with the document, a reference to the document in which the particular term occurs.
7. The storage medium of claim 5 , wherein the substitute term for the particular term is identified based in part on a document context of the particular term in the document.
8. The storage medium of claim 5 , further comprising:
storing, in the index associate with the document, information indicating that the substitute term of the particular term (i) is a substitute term of the particular term, or (ii) is not a term that occurs in the document.
9. A system comprising:
one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising:
storing, in an index associated with a document, a particular term that occurs in the document, wherein the particular term comprises quantity m words, wherein the quantity m is greater than 1;
identifying a substitute term of the particular term, wherein the substitute term comprises quantity n separate words, and wherein the quantity n is greater than 1; and
in response to identifying the substitute term of the particular term, storing, in the index associated with the document, (i) each of the quantity n words of the substitute term of the particular term as a separate index entry, and (ii) for each respective index entry, data indicating the quantity m and data indicating a value between 1 and n inclusive, wherein the value reflects an order of the respective word within the quantity n words of the substitute term.
10. The system of claim 9 , further comprising:
storing, in the index associated with the document, a reference to the document in which the particular term occurs.
11. The system of claim 9 , wherein the substitute term for the particular term is identified based in part on a document context of the particular term in the document.
12. The system of claim 9 , further comprising:
storing, in the index associate with the document, information indicating that the substitute term of the particular term (i) is a substitute term of the particular term, or (ii) is not a term that occurs in the document.