[−][src]Struct tantivy::schema::TextFieldIndexing
Configuration defining indexing for a text field.
It defines
- the amount of information that should be stored about the presence of a term in a document.
Essentially, should we store the term frequency and/or the positions (See
IndexRecordOption
). - the name of the
Tokenizer
that should be used to process the field.
Methods
impl TextFieldIndexing
[src]
pub fn set_tokenizer(self, tokenizer_name: &str) -> TextFieldIndexing
[src]
Sets the tokenizer to be used for a given field.
pub fn tokenizer(&self) -> &str
[src]
Returns the tokenizer that will be used for this field.
pub fn set_index_option(
self,
index_option: IndexRecordOption
) -> TextFieldIndexing
[src]
self,
index_option: IndexRecordOption
) -> TextFieldIndexing
Sets which information should be indexed with the tokens.
See IndexRecordOption for more detail.
pub fn index_option(&self) -> IndexRecordOption
[src]
Returns the indexing options associated to this field.
See IndexRecordOption for more detail.
Trait Implementations
impl Clone for TextFieldIndexing
[src]
fn clone(&self) -> TextFieldIndexing
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TextFieldIndexing
[src]
fn default() -> TextFieldIndexing
[src]
impl Eq for TextFieldIndexing
[src]
impl PartialEq<TextFieldIndexing> for TextFieldIndexing
[src]
fn eq(&self, other: &TextFieldIndexing) -> bool
[src]
fn ne(&self, other: &TextFieldIndexing) -> bool
[src]
impl Debug for TextFieldIndexing
[src]
impl StructuralPartialEq for TextFieldIndexing
[src]
impl StructuralEq for TextFieldIndexing
[src]
impl Serialize for TextFieldIndexing
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for TextFieldIndexing
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for TextFieldIndexing
impl Sync for TextFieldIndexing
impl Unpin for TextFieldIndexing
impl UnwindSafe for TextFieldIndexing
impl RefUnwindSafe for TextFieldIndexing
Blanket Implementations
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> From<T> for T
[src]
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<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> 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,
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,