27. A system for handling error documents, comprising: hardware logic performing operations, the operations comprising: storing one or more entries for valid documents and one or more entries for error documents in a documents portion of a text index and storing tokens from the valid documents in a posting lists portion of the text index, wherein each of the entries includes a first field and a second field, wherein the first field for a valid document is indexable and stores one or more tokens forming document text, wherein the first field for an error document is not indexable and stores an error message, and wherein the second field stores an indication of whether the document is an error document; fetching a document with a document identifier; and in response to determining that the document is an error document, adding an entry in the documents portion of the text index that includes an error message in a field that is not searchable in response to a search request using one or more tokens to locate one or more documents indexed by the text index.
27. A system for handling error documents, comprising: hardware logic performing operations, the operations comprising: storing one or more entries for valid documents and one or more entries for error documents in a documents portion of a text index and storing tokens from the valid documents in a posting lists portion of the text index, wherein each of the entries includes a first field and a second field, wherein the first field for a valid document is indexable and stores one or more tokens forming document text, wherein the first field for an error document is not indexable and stores an error message, and wherein the second field stores an indication of whether the document is an error document; fetching a document with a document identifier; and in response to determining that the document is an error document, adding an entry in the documents portion of the text index that includes an error message in a field that is not searchable in response to a search request using one or more tokens to locate one or more documents indexed by the text index. 32. The system of claim 27 , wherein the document is a first document with a first document identifier and wherein the operations further comprise: receiving a second document with the first document identifier; determining that the second document has an entry in the text index; determining that the second document is an error document; deleting the entry in the text index; and adding a new entry in the documents portion of the text index for the second document, wherein the new entry includes an error message, the document identifier, and an indication that the second document is an error document.