mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-07 17:42:55 +00:00
35 lines
1.2 KiB
Rust
35 lines
1.2 KiB
Rust
mod executor;
|
|
pub mod index;
|
|
mod index_meta;
|
|
mod inverted_index_reader;
|
|
pub mod searcher;
|
|
mod segment;
|
|
mod segment_component;
|
|
mod segment_id;
|
|
mod segment_reader;
|
|
|
|
pub use self::executor::Executor;
|
|
pub use self::index::Index;
|
|
pub use self::index_meta::{IndexMeta, SegmentMeta, SegmentMetaInventory};
|
|
pub use self::inverted_index_reader::InvertedIndexReader;
|
|
pub use self::searcher::Searcher;
|
|
pub use self::segment::Segment;
|
|
pub use self::segment::SerializableSegment;
|
|
pub use self::segment_component::SegmentComponent;
|
|
pub use self::segment_id::SegmentId;
|
|
pub use self::segment_reader::SegmentReader;
|
|
|
|
use once_cell::sync::Lazy;
|
|
use std::path::Path;
|
|
|
|
/// The meta file contains all the information about the list of segments and the schema
|
|
/// of the index.
|
|
pub static META_FILEPATH: Lazy<&'static Path> = Lazy::new(|| Path::new("meta.json"));
|
|
|
|
/// The managed file contains a list of files that were created by the tantivy
|
|
/// and will therefore be garbage collected when they are deemed useless by tantivy.
|
|
///
|
|
/// Removing this file is safe, but will prevent the garbage collection of all of the file that
|
|
/// are currently in the directory
|
|
pub static MANAGED_FILEPATH: Lazy<&'static Path> = Lazy::new(|| Path::new(".managed.json"));
|