gnes.indexer.fulltext.leveldb module

class gnes.indexer.fulltext.leveldb.AsyncLVDBIndexer(data_path: str, keep_na_doc: bool = True, drop_raw_bytes: bool = False, drop_chunk_blob: bool = False, *args, **kwargs)[source]

Bases: gnes.indexer.fulltext.leveldb.LVDBIndexer

add(keys: List[int], docs: List[gnes_pb2.Document], *args, **kwargs)[source]
close()[source]

Release the resources as model is destroyed

post_init()[source]

Declare class attributes/members that can not be serialized in standard way

query(*args, **kwargs) → List[Any][source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.indexer.fulltext.leveldb.LVDBIndexer(data_path: str, keep_na_doc: bool = True, drop_raw_bytes: bool = False, drop_chunk_blob: bool = False, *args, **kwargs)[source]

Bases: gnes.indexer.base.BaseTextIndexer

add(keys: List[int], docs: List[gnes_pb2.Document], *args, **kwargs)[source]
close()[source]

Release the resources as model is destroyed

post_init()[source]

Declare class attributes/members that can not be serialized in standard way

query(keys: List[int], *args, **kwargs) → List[gnes_pb2.Document][source]
train(*args, **kwargs)

Train the model, need to be overrided