materialsproject / maggma

MongoDB aggregation machine

Home Page:https://materialsproject.github.io/maggma/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clarify that _id key gets stripped from MongoDB index store in S3Store

Andrew-S-Rosen opened this issue · comments

We should note in the documentation (at least) that the "_id" key gets stripped below. This meant I couldn't use "_id" from MongoStore index store when instantiating my S3Store.

# Remove MongoDB _id from search
if "_id" in search_doc:
del search_doc["_id"]