mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
Change indexing threshold
This commit is contained in:
parent
3092cf0448
commit
24c0775c67
@ -288,5 +288,5 @@ fn most_frequent_languages(
|
|||||||
|
|
||||||
fn compute_laguage_frequency_threshold(languages_frequency: &[(Language, usize)]) -> usize {
|
fn compute_laguage_frequency_threshold(languages_frequency: &[(Language, usize)]) -> usize {
|
||||||
let total: usize = languages_frequency.iter().map(|(_, c)| c).sum();
|
let total: usize = languages_frequency.iter().map(|(_, c)| c).sum();
|
||||||
total / 20 // 5% is a completely arbitrar value.
|
total / 10 // 10% is a completely arbitrar value.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user