nucypher / zerodb

*This project is no longer actively maintained. If you'd like to become the maintainer, please let us know.* ZeroDB is an end-to-end encrypted database. Data can be stored and queried on untrusted database servers without ever exposing the encryption key. Clients can execute remote queries against the encrypted data without downloading all of it or suffering an excessive performance hit.
GNU Affero General Public License v3.0
1.56k stars 102 forks source link

reindex_doc test #27

Closed xueyumusic closed 8 years ago

xueyumusic commented 8 years ago

add reindex_doc test

michwill commented 8 years ago

I think, in one of comments you've been exactly right that we should have a higher level method reindex_doc. Also I think we should allow to reindex doc not only using its uid but also using the document object itself.

When a document is already indexed, it has an attribute _p_uid (which is assigned as soon as we index or read an object)

michwill commented 8 years ago

Adding this more proper reindex method...