Indexes the documents in a path