enable distinct

This commit is contained in:
mpostma
2021-03-29 09:22:36 +02:00
committed by Marin Postma
parent bf3c04f2dc
commit ec230c2835
3 changed files with 693 additions and 745 deletions

View File

@ -59,6 +59,9 @@ impl Index {
})
.transpose()?
.unwrap_or_else(BTreeSet::new);
let distinct_attribute = self
.distinct_attribute(&txn)?
.map(String::from);
Ok(Settings {
displayed_attributes: Some(Some(displayed_attributes)),
@ -66,6 +69,7 @@ impl Index {
attributes_for_faceting: Some(Some(faceted_attributes)),
ranking_rules: Some(Some(criteria)),
stop_words: Some(Some(stop_words)),
distinct_attribute: Some(distinct_attribute),
})
}