Struct elasticsearch_dsl::analyze::Token
source · pub struct Token {
pub token: String,
pub start_offset: u32,
pub end_offset: u32,
pub ty: TokenType,
pub position: u32,
pub bytes: Option<String>,
pub keyword: Option<bool>,
pub position_length: Option<u32>,
pub term_frequency: Option<u32>,
}
Expand description
Extracted token from text using tokenizer
Fields§
§token: String
The characters of the current token
start_offset: u32
The start offset of the current token
end_offset: u32
The end offset of the current token
ty: TokenType
The type of the current token
position: u32
The position of the current token
bytes: Option<String>
Token in bytes
keyword: Option<bool>
Whether or not the current token is marked as a keyword
position_length: Option<u32>
The position length of the current token
term_frequency: Option<u32>
Term frequency in given text analysis
Trait Implementations§
source§impl<'de> Deserialize<'de> for Token
impl<'de> Deserialize<'de> for Token
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more