[−][src]Enum tantivy::schema::IndexRecordOption
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
impl IndexRecordOption
[src]
pub fn has_freq(self) -> bool
[src]
Returns true iff this option includes encoding term frequencies.
pub fn has_positions(self) -> bool
[src]
Returns true iff this option include encoding term positions.
Trait Implementations
impl Clone for IndexRecordOption
[src]
fn clone(&self) -> IndexRecordOption
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for IndexRecordOption
[src]
impl Debug for IndexRecordOption
[src]
impl<'de> Deserialize<'de> for IndexRecordOption
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for IndexRecordOption
[src]
impl Hash for IndexRecordOption
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for IndexRecordOption
[src]
fn cmp(&self, other: &IndexRecordOption) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<IndexRecordOption> for IndexRecordOption
[src]
fn eq(&self, other: &IndexRecordOption) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<IndexRecordOption> for IndexRecordOption
[src]
fn partial_cmp(&self, other: &IndexRecordOption) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for IndexRecordOption
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for IndexRecordOption
[src]
impl StructuralPartialEq for IndexRecordOption
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,