[AUR-420] Provide document store base interface and an in-memory version (#21)

Document store handles storing and indexing Documents. It supports the following interfaces:

- add: add 1 or more documents into document store
- get: get a list of documents
- get_all: get all documents in a document store
- delete: delete 1 or more document
- save: persist a document store into disk
- load: load a document store from disk
This commit is contained in:
Nguyen Trung Duc (john)
2023-09-19 14:49:23 +07:00
committed by GitHub
parent 620b2b03ca
commit 2a3a23ecd7
5 changed files with 185 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
from .base import BaseDocumentStore
from .simple import InMemoryDocumentStore
__all__ = ["BaseDocumentStore", "InMemoryDocumentStore"]