Indexing

Indexing functionality for metadata search and filtering.

class Indexer[source]

Bases: object

Interface to interact with the index.

__init__(path=None, read_only=False)[source]
add(*objects: Any) None[source]

Add objects to the index.

commit() None[source]

Commit the current transaction.

get(cls: Type[Any], **identifiers) Any[source]

Retrieve a single object based on the identifiers.

options(cls: Type[Any], **filters) List[Any][source]

Retrieve all objects matching the given filters.

retrieve(stmt)[source]
rollback()[source]

Roll back the current transaction.

property session
read_only = False