Enum tantivy::schema::IndexRecordOption [−][src]
pub enum IndexRecordOption {
Basic,
WithFreqs,
WithFreqsAndPositions,
}
Expand description
IndexRecordOption
describes an amount information associated
to a given indexed field.
It is both used to:
- describe in the schema the amount of information
that should be retained during indexing (See
TextFieldIndexing.html.set_index_option
) - to request for a given
amount of information to be decoded as one goes through a posting list.
(See
InvertedIndexReader.read_postings
)
Variants
records only the DocId
s
records the document ids as well as the term frequency. The term frequency can help giving better scoring of the documents.
records the document id, the term frequency and the positions of the occurences in the document. Positions are required to run PhraseQueries.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for IndexRecordOption
impl Send for IndexRecordOption
impl Sync for IndexRecordOption
impl Unpin for IndexRecordOption
impl UnwindSafe for IndexRecordOption
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