about summary refs log tree commit diff
path: root/crates/schema/src/lib.rs
blob: 908c1e11c9c4da782d3e29ff214116882982da3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! What a GeneNetwork search document IS — the one definition shared by the
//! engine that reads an index and the indexer that writes one.
//!
//! Keeping the vocabulary in a crate with no heavy dependencies means a
//! consumer can depend on it without inheriting xapian, MySQL or a web server,
//! and it means writer and reader cannot drift apart silently: they agree at
//! compile time.

pub mod error;
pub mod schema;
pub mod sha256;
pub mod hit;
pub mod manifest;

pub use error::SearchError;
pub use schema::{canonical as canonical_schema, digest as schema_digest, SCHEMA_VERSION};
pub use hit::SearchHit;
pub use manifest::{age_seconds, read as read_manifest, sidecar_path, Manifest, ShardEntry};