_index and _id can be null