Creates a Firestore Document Indexer.

This function returns a DocumentIndexer function that indexes documents into a Firestore collection.