Improves indexer functions

* Amends comment.

* Optional commit after adding a document.