[][src]Struct tantivy::IndexMeta

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

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

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 Striing payload to their commit to help identify this commit. This payload is entirely unused by tantivy.

Methods

impl IndexMeta[src]

pub fn with_schema(schema: Schema) -> IndexMeta[src]

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

impl Clone for IndexMeta[src]

impl Debug for IndexMeta[src]

impl Serialize for IndexMeta[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Fruit for T where
    T: Send + Downcast
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]