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]
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]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for TextFieldIndexing
[src]
fn eq(&self, __arg_0: &TextFieldIndexing) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TextFieldIndexing) -> bool
[src]
This method tests for !=
.
impl Eq for TextFieldIndexing
[src]
impl Debug for TextFieldIndexing
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for TextFieldIndexing
[src]
fn default() -> TextFieldIndexing
[src]
Returns the "default value" for a type. Read more