pub mod analysis;
pub mod check;
pub mod codec;
pub mod codec_header;
pub mod compound;
pub mod directory;
pub mod documents;
pub mod dump;
pub mod layout;
pub mod read;
pub mod segments;
pub mod writer;
pub use check::{BlobFault, LuceneBlobReport, check_blobs};
pub use codec_header::{CODEC_MAGIC, CodecHeader, header_length, read_codec_header};
pub use compound::{CompoundEntry, CompoundTableOfContents, read_table_of_contents};
pub use directory::{FileEncoding, OakDirectory, OakIndexFile, OakIndexFileReader};
pub use dump::{
DumpOptions, DumpOutcome, DumpedIndex, NoCheckpointReason, dump_lucene_indexes,
dump_lucene_indexes_with_progress,
};
pub use layout::{IndexDetails, IndexerInfo, filesystem_directory_name, index_folder_base_name};
pub use read::{LuceneReadError, LuceneResult, Reader};
pub use segments::{
CommitFile, SegmentEntry, SegmentInfo, commit_generation, read_commit_file, read_segment_info,
read_segments_gen,
};
pub const INDEX_DATA_CHILD_NAME: &str = ":data";
pub const SUGGEST_DATA_CHILD_NAME: &str = ":suggest-data";
#[must_use]
pub fn is_index_directory_name(name: &str) -> bool {
name == INDEX_DATA_CHILD_NAME || name.ends_with("-index-data")
}
#[must_use]
pub fn is_suggest_directory_name(name: &str) -> bool {
name == SUGGEST_DATA_CHILD_NAME || name.ends_with("-suggest-data")
}