An API for indexing and searching text documents.