README

Lucius646/MoonSearch/schema does not have a README file

#
FieldEntry

type FieldEntry

#
Schema

pub struct Schema {
fields : ReadOnlyArray[FieldEntry]
}

Immutable registry of field names, identifiers, and text options.

#
Schema::field

fn Schema::field(self : Schema, name : String) ->
FieldId
?

#
Schema::field_count

fn Schema::field_count(self : Schema) -> Int

#
Schema::field_name

fn Schema::field_name(self : Schema, field_id :
FieldId
) -> String?

#
Schema::is_indexed

fn Schema::is_indexed(self : Schema, field_id :
FieldId
) -> Bool

#
Schema::is_stored

fn Schema::is_stored(self : Schema, field_id :
FieldId
) -> Bool

#
Schema::options

#
Schema::tokenizer_name

fn Schema::tokenizer_name(self : Schema, field_id :
FieldId
) -> String?

Returns the Tokenizer registry name configured for one field.

#
SchemaBuilder

pub struct SchemaBuilder {
fields : Array[FieldEntry]
}

Mutable builder that assigns sequential, stable FieldId values.

#
SchemaBuilder::add_text_field

fn SchemaBuilder::add_text_field(self : SchemaBuilder, name : String, options : TextOptions) ->
FieldId

#
SchemaBuilder::build

fn SchemaBuilder::build(self : SchemaBuilder) -> Schema

#
SchemaBuilder::new

#
TextOptions

pub struct TextOptions {
indexed : Bool
stored : Bool
tokenizer_name : String
}

Indexing and storage behavior for one text field.

#
TextOptions::is_indexed

fn TextOptions::is_indexed(self : TextOptions) -> Bool

#
TextOptions::is_stored

fn TextOptions::is_stored(self : TextOptions) -> Bool

#
TextOptions::new

fn TextOptions::new(indexed : Bool, stored : Bool) -> TextOptions

#
TextOptions::tokenizer_name

fn TextOptions::tokenizer_name(self : TextOptions) -> String

#
TextOptions::with_tokenizer

fn TextOptions::with_tokenizer(self : TextOptions, tokenizer_name : String) -> TextOptions

Selects the named Tokenizer pipeline used for this field at index and query time.

#
schemas_equal

fn schemas_equal(left : Schema?, right : Schema?) -> Bool

#
valid_tokenizer_name

fn valid_tokenizer_name(name : String) -> Bool

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io