implement _formated

This commit is contained in:
Marin Postma 2021-04-19 16:22:41 +02:00
parent 526a05565e
commit c6bb36efa5
No known key found for this signature in database
GPG key ID: D5241F0C0C865F30
5 changed files with 124 additions and 44 deletions

View file

@ -36,11 +36,11 @@ impl TryFrom<SearchQueryGet> for SearchQuery {
fn try_from(other: SearchQueryGet) -> anyhow::Result<Self> {
let attributes_to_retrieve = other
.attributes_to_retrieve
.map(|attrs| attrs.split(',').map(String::from).collect::<Vec<_>>());
.map(|attrs| attrs.split(',').map(String::from).collect::<HashSet<_>>());
let attributes_to_crop = other
.attributes_to_crop
.map(|attrs| attrs.split(',').map(String::from).collect::<Vec<_>>());
.map(|attrs| attrs.split(',').map(String::from).collect::<HashSet<_>>());
let attributes_to_highlight = other
.attributes_to_highlight