1. A method for handling error documents, comprising: storing, using a computer including a processor, 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.