Struct tantivy::schema::TextFieldIndexing [−][src]
pub struct TextFieldIndexing { /* fields omitted */ }
Configuration defining indexing for a text field. It wraps:
- record (See
IndexRecordOption
) - tokenizer
Methods
impl TextFieldIndexing
[src]
impl TextFieldIndexing
pub fn set_tokenizer(self, tokenizer_name: &str) -> TextFieldIndexing
[src]
pub fn set_tokenizer(self, tokenizer_name: &str) -> TextFieldIndexing
Sets the tokenizer to be used for a given field.
pub fn tokenizer(&self) -> &str
[src]
pub fn tokenizer(&self) -> &str
Returns the tokenizer that will be used for this field.
pub fn set_index_option(
self,
index_option: IndexRecordOption
) -> TextFieldIndexing
[src]
pub fn set_index_option(
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]
pub fn index_option(&self) -> IndexRecordOption
Returns the indexing options associated to this field.
See IndexRecordOption for more detail.
Trait Implementations
impl Clone for TextFieldIndexing
[src]
impl Clone for TextFieldIndexing
fn clone(&self) -> TextFieldIndexing
[src]
fn clone(&self) -> TextFieldIndexing
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for TextFieldIndexing
[src]
impl PartialEq for TextFieldIndexing
fn eq(&self, other: &TextFieldIndexing) -> bool
[src]
fn eq(&self, other: &TextFieldIndexing) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TextFieldIndexing) -> bool
[src]
fn ne(&self, other: &TextFieldIndexing) -> bool
This method tests for !=
.
impl Eq for TextFieldIndexing
[src]
impl Eq for TextFieldIndexing
impl Debug for TextFieldIndexing
[src]
impl Debug for TextFieldIndexing
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for TextFieldIndexing
[src]
impl Default for TextFieldIndexing
fn default() -> TextFieldIndexing
[src]
fn default() -> TextFieldIndexing
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for TextFieldIndexing
impl Send for TextFieldIndexing
impl Sync for TextFieldIndexing
impl Sync for TextFieldIndexing