Indexing/replacing documents

edit

See Index API.