Indexing documents with complex _id fields