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
Auto Trait Implementations
impl !RefUnwindSafe for IndexMeta
impl !UnwindSafe for IndexMeta
Blanket Implementations
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
pub fn vzip(self) -> V