Lucius646/MoonSearch/index does not have a README file
pub struct BudgetedSegmentWriter {
schema : Schema
tokenizers : TokenizerManager
memory_budget_bytes : Int
current : SegmentWriter[WhitespaceAnalyzer]
current_estimated_bytes : Int
current_documents : Int
segments : Array[Segment]
indexed_documents : Int
peak_estimated_bytes : Int
}fn BudgetedSegmentWriter::add_document(self : BudgetedSegmentWriter, document : Document) -> DocId raise AnalysisErrorfn BudgetedSegmentWriter::finish(self : BudgetedSegmentWriter) -> ReadOnlyArray[Segment] raise AnalysisErrorfn BudgetedSegmentWriter::new(schema : Schema, tokenizers : TokenizerManager, memory_budget_bytes : Int) -> BudgetedSegmentWriter raise AnalysisErrorpub struct BudgetedWriterStats {
memory_budget_bytes : Int
flushed_segments : Int
indexed_documents : Int
peak_estimated_bytes : Int
}pub struct IndexingExecutionPlan {
requested_parallelism : Int
effective_parallelism : Int
degraded : Bool
}pub struct PostingCursor {
postings : ReadOnlyArray[Posting]
blocks : ReadOnlyArray[PostingSkipBlock]
cursor : Int
skipped_blocks : Int
}pub struct Segment {
schema : Schema?
indexed_terms : ReadOnlyArray[Term]
posting_lists : ReadOnlyArray[ReadOnlyArray[Posting]]
stored_field_blocks : ReadOnlyArray[StoredFieldBlock]
document_values : ReadOnlyArray[ReadOnlyArray[FieldValueEntry]]
fast_fields : ReadOnlyArray[FastFieldColumn]
document_field_lengths : ReadOnlyArray[ReadOnlyArray[FieldLength]]
field_stats : ReadOnlyArray[FieldStats]
document_count : Int
}fn Segment::fast_values(self : Segment, field_id : FieldId, doc_id : DocId) -> ReadOnlyArray[FieldValue]fn Segment::field_values(self : Segment, doc_id : DocId, field_id : FieldId) -> ReadOnlyArray[FieldValue]pub struct SegmentWriter[A] {
tokenizer : A
tokenizer_manager : TokenizerManager?
schema : Schema?
terms : Array[Term]
term_indexes : HashMap[String, Int]
posting_doc_ids : Array[Array[DocId]]
posting_term_freqs : Array[Array[Int]]
posting_positions : Array[Array[Array[Int]]]
posting_position_lengths : Array[Array[Array[Int]]]
posting_start_offsets : Array[Array[Array[Int]]]
posting_end_offsets : Array[Array[Array[Int]]]
posting_value_indexes : Array[Array[Array[Int]]]
stored_documents : Array[StoredDocument]
document_values : Array[Array[FieldValueEntry]]
document_field_lengths : Array[Array[FieldLength]]
field_stats : Array[FieldStats]
next_doc_id : Int
}fn[A : Tokenizer] SegmentWriter::add_document(self : SegmentWriter[A], document : Document) -> DocIdfn SegmentWriter::with_schema_and_tokenizers(schema : Schema, tokenizer_manager : TokenizerManager) -> SegmentWriter[WhitespaceAnalyzer] raise AnalysisErrorfn TermDictionary::terms_with_prefix(self : TermDictionary, field_id : FieldId, prefix : String) -> ReadOnlyArray[Term]A MoonBit-native embedded full-text search kernel
Dependencies