Skip to content

Commit

Permalink
enhance: analyzer length filter max should be close interval instead …
Browse files Browse the repository at this point in the history
…open interval (#37770)

Signed-off-by: aoiasd <[email protected]>
  • Loading branch information
aoiasd authored Nov 18, 2024
1 parent 82d2ac6 commit 16e2061
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>{
Expand Down

0 comments on commit 16e2061

Please sign in to comment.