Library index¶
This is an automatically generated API reference for rebuildable library-level
search indexes (.vera-index/).
collection
¶
Rebuildable library-level search index for collections of .vera files.
Classes:
-
VeraCollectionIndex–Opened local collection index used by VeraCorpus when it is fresh.
Functions:
-
build_library_index–Build an index atomically and return a machine-readable report.
-
update_library_index–Rebuild an existing library index using its persisted discovery settings.
-
library_index_status–Report whether a library index exists and matches the current file tree.
VeraCollectionIndex
¶
Opened local collection index used by VeraCorpus when it is fresh.
Methods:
-
open– -
close– -
document_paths–Return root-relative archive paths recorded by this generation.
-
inspect_summary–Return corpus metrics from the persistent index without reopening archives.
-
__enter__– -
__exit__– -
search–
Attributes:
-
root– -
generation– -
conn– -
skipped_semantic_model_groups(list[dict[str, Any]]) –
build_library_index
¶
build_library_index(directory: str, *, recursive: bool = False, excludes: Iterable[str] = (), operation: str = 'build') -> dict[str, Any]
Build an index atomically and return a machine-readable report.
update_library_index
¶
Rebuild an existing library index using its persisted discovery settings.
library_index_status
¶
Report whether a library index exists and matches the current file tree.
See also Collection index design.