mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
Merge #532
532: Add some implementation on MatchBounds r=Kerollmops a=ManyTheFish Theses Implementations are needed in meilisearch Co-authored-by: ManyTheFish <many@meilisearch.com>
This commit is contained in:
commit
3389561f34
@ -3,6 +3,7 @@ use std::borrow::Cow;
|
|||||||
use matching_words::{MatchType, PartialMatch, PrimitiveWordId};
|
use matching_words::{MatchType, PartialMatch, PrimitiveWordId};
|
||||||
pub use matching_words::{MatchingWord, MatchingWords};
|
pub use matching_words::{MatchingWord, MatchingWords};
|
||||||
use meilisearch_tokenizer::token::{SeparatorKind, Token};
|
use meilisearch_tokenizer::token::{SeparatorKind, Token};
|
||||||
|
use serde::Serialize;
|
||||||
|
|
||||||
pub mod matching_words;
|
pub mod matching_words;
|
||||||
|
|
||||||
@ -86,7 +87,7 @@ pub struct Match {
|
|||||||
token_position: usize,
|
token_position: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Serialize, Debug, Clone, PartialEq)]
|
||||||
pub struct MatchBounds {
|
pub struct MatchBounds {
|
||||||
pub start: usize,
|
pub start: usize,
|
||||||
pub length: usize,
|
pub length: usize,
|
||||||
|
Loading…
Reference in New Issue
Block a user