Struct elasticlunr::pipeline::Pipeline
[−]
[src]
pub struct Pipeline { /* fields omitted */ }
A sequence of PipelineFn
s which are run on tokens to prepare them for searching.
Methods
impl Pipeline
[src]
pub fn for_language(lang: Language) -> Pipeline
[src]
Returns a pipeline for the given Language
.
pub fn run(&self, tokens: Vec<String>) -> Vec<String>
[src]
Run the Pipeline against the given vector of tokens. The returned vector may be shorter
than the input if a pipeline function returns None
for a token.
Trait Implementations
impl Debug for Pipeline
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Serialize for Pipeline
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more