[−][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.
Methods
impl IndexRecordOption
[src]
pub fn is_termfreq_enabled(self) -> bool
[src]
Returns true iff the term frequency will be encoded.
pub fn is_position_enabled(self) -> bool
[src]
Returns true iff the term positions within the document are stored as well.
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 Eq for IndexRecordOption
[src]
impl Clone for IndexRecordOption
[src]
fn clone(&self) -> IndexRecordOption
[src]
fn clone_from(&mut self, source: &Self)
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 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 Ord for IndexRecordOption
[src]
fn cmp(&self, other: &IndexRecordOption) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl Copy 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 Debug for IndexRecordOption
[src]
impl Serialize for IndexRecordOption
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for IndexRecordOption
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for IndexRecordOption
impl Unpin for IndexRecordOption
impl Sync for IndexRecordOption
impl UnwindSafe for IndexRecordOption
impl RefUnwindSafe for IndexRecordOption
Blanket Implementations
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,