Struct tantivy::IndexMeta[][src]

pub struct IndexMeta {
    pub index_settings: IndexSettings,
    pub segments: Vec<SegmentMeta>,
    pub schema: Schema,
    pub opstamp: Opstamp,
    pub payload: Option<String>,
}
Expand description

Meta information about the Index.

This object is serialized on disk in the meta.json file. It keeps information about

  • the searchable segments,
  • the index docstamp
  • the schema

Fields

index_settings: IndexSettings

IndexSettings to configure index options.

segments: Vec<SegmentMeta>

List of SegmentMeta informations associated to each finalized segment of the index.

schema: Schema

Index Schema

opstamp: Opstamp

Opstamp associated to the last commit operation.

payload: Option<String>

Payload associated to the last commit.

Upon commit, clients can optionally add a small String payload to their commit to help identify this commit. This payload is entirely unused by tantivy.

Implementations

Create an IndexMeta object representing a brand new Index with the given index.

This new index does not contains any segments. Opstamp will the value 0u64.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.