Small comment on ignored rules for placeholder search

This commit is contained in:
Louis Dureuil 2023-03-29 09:11:06 +02:00
parent ef084ef042
commit abb4522f76
No known key found for this signature in database

View File

@ -118,8 +118,8 @@ fn get_ranking_rules_for_placeholder_search<'ctx>(
let mut ranking_rules: Vec<BoxRankingRule<PlaceholderQuery>> = vec![]; let mut ranking_rules: Vec<BoxRankingRule<PlaceholderQuery>> = vec![];
let settings_ranking_rules = ctx.index.criteria(ctx.txn)?; let settings_ranking_rules = ctx.index.criteria(ctx.txn)?;
for rr in settings_ranking_rules { for rr in settings_ranking_rules {
// Add Words before any of: typo, proximity, attribute, exactness
match rr { match rr {
// These rules need a query to have an effect; ignore them in placeholder search
crate::Criterion::Words crate::Criterion::Words
| crate::Criterion::Typo | crate::Criterion::Typo
| crate::Criterion::Attribute | crate::Criterion::Attribute