README

Lucius646/MoonSearch/schema does not have a README file

#
FieldEntry

type FieldEntry

#
FieldOptions

pub struct FieldOptions {
indexed : Bool
stored : Bool
fast : Bool
multi_valued : Bool
}

Index/storage/column flags for non-analyzed fields.

#
FieldOptions::is_fast

fn FieldOptions::is_fast(self : FieldOptions) -> Bool

#
FieldOptions::is_indexed

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

#
FieldOptions::is_multi_valued

fn FieldOptions::is_multi_valued(self : FieldOptions) -> Bool

#
FieldOptions::is_stored

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

#
FieldOptions::new

fn FieldOptions::new(indexed : Bool, stored : Bool, fast : Bool) -> FieldOptions

#
FieldOptions::with_multi_valued

fn FieldOptions::with_multi_valued(self : FieldOptions, multi_valued : Bool) -> FieldOptions

#
FieldType

pub(all) enum FieldType {
Text
Keyword
I64
U64
F64
Bool
Date
Bytes
} derive(Eq,
Debug
)

#
Schema

pub struct Schema {
fields : ReadOnlyArray[FieldEntry]
}

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

#
Schema::analyzer_version

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

#
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::field_type

fn Schema::field_type(self : Schema, field_id :
FieldId
) -> FieldType?

#
Schema::is_fast

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

#
Schema::is_indexed

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

#
Schema::is_multi_valued

fn Schema::is_multi_valued(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_bool_field

fn SchemaBuilder::add_bool_field(self : SchemaBuilder, name : String, options : FieldOptions) ->
FieldId

#
SchemaBuilder::add_bytes_field

fn SchemaBuilder::add_bytes_field(self : SchemaBuilder, name : String, options : FieldOptions) ->
FieldId

#
SchemaBuilder::add_date_field

fn SchemaBuilder::add_date_field(self : SchemaBuilder, name : String, options : FieldOptions) ->
FieldId

#
SchemaBuilder::add_f64_field

fn SchemaBuilder::add_f64_field(self : SchemaBuilder, name : String, options : FieldOptions) ->
FieldId

#
SchemaBuilder::add_i64_field

fn SchemaBuilder::add_i64_field(self : SchemaBuilder, name : String, options : FieldOptions) ->
FieldId

#
SchemaBuilder::add_keyword_field

fn SchemaBuilder::add_keyword_field(self : SchemaBuilder, name : String, options : FieldOptions) ->
FieldId

#
SchemaBuilder::add_text_field

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

#
SchemaBuilder::add_u64_field

fn SchemaBuilder::add_u64_field(self : SchemaBuilder, name : String, options : FieldOptions) ->
FieldId

#
SchemaBuilder::build

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

#
SchemaBuilder::new

#
TextOptions

pub struct TextOptions {
indexed : Bool
stored : Bool
fast : Bool
multi_valued : Bool
tokenizer_name : String
analyzer_version : String
}

Indexing and storage behavior for one text field.

#
TextOptions::analyzer_version

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

#
TextOptions::is_fast

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

#
TextOptions::is_indexed

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

#
TextOptions::is_multi_valued

fn TextOptions::is_multi_valued(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_analyzer_version

fn TextOptions::with_analyzer_version(self : TextOptions, analyzer_version : String) -> TextOptions

Pins the analyzer resource fingerprint expected when indexing or reopening this field. Empty keeps backward-compatible name-only resolution.

#
TextOptions::with_fast

fn TextOptions::with_fast(self : TextOptions, fast : Bool) -> TextOptions

#
TextOptions::with_multi_valued

fn TextOptions::with_multi_valued(self : TextOptions, multi_valued : Bool) -> TextOptions

#
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