Enum tantivy::ReloadPolicy [−][src]
pub enum ReloadPolicy {
Manual,
OnCommit,
}
Expand description
Defines when a new version of the index should be reloaded.
Regardless of whether you search and index in the same process, tantivy does not necessarily
reflects the change that are commited to your index. ReloadPolicy
precisely helps you define
when you want your index to be reloaded.
Variants
The index is entirely reloaded manually. All updates of the index should be manual.
No change is reflected automatically. You are required to call IndexReader::reload()
manually.
The index is reloaded within milliseconds after a new commit is available.
This is made possible by watching changes in the meta.json
file.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ReloadPolicy
impl Send for ReloadPolicy
impl Sync for ReloadPolicy
impl Unpin for ReloadPolicy
impl UnwindSafe for ReloadPolicy
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