enhance: analyzer length filter max should be close interval instead open interval (#37770)

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
pull/37786/head
aoiasd 2024-11-18 19:30:31 +08:00 committed by GitHub
parent 82d2ac6be0
commit 16e206167c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ fn get_length_filter(params: &json::Map<String, json::Value>) -> Result<SystemFi
return Err("lenth max param was none or not uint".into())
}
let limit = limit_str.unwrap().as_u64().unwrap() as usize;
Ok(SystemFilter::Length(RemoveLongFilter::limit(limit)))
Ok(SystemFilter::Length(RemoveLongFilter::limit(limit+1)))
}
fn get_stop_words_filter(params: &json::Map<String, json::Value>)-> Result<SystemFilter, TantivyError>{