mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Add some implementation on MatchBounds
This commit is contained in:
parent
08c6d50cd1
commit
137434a1c8
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ use std::borrow::Cow;
|
|||
use matching_words::{MatchType, PartialMatch, PrimitiveWordId};
|
||||
pub use matching_words::{MatchingWord, MatchingWords};
|
||||
use meilisearch_tokenizer::token::{SeparatorKind, Token};
|
||||
use serde::Serialize;
|
||||
|
||||
pub mod matching_words;
|
||||
|
||||
|
@ -86,7 +87,7 @@ pub struct Match {
|
|||
token_position: usize,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Serialize, Debug, Clone, PartialEq)]
|
||||
pub struct MatchBounds {
|
||||
pub start: usize,
|
||||
pub length: usize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue