Add custom croplength for attributes to crop

This commit is contained in:
Clémentine Urquizar 2021-06-08 17:33:20 +02:00
parent 811bc2f421
commit 0da8fa115e
No known key found for this signature in database
GPG key ID: D8E7CC7422E77E1A
2 changed files with 45 additions and 18 deletions

View file

@ -40,7 +40,7 @@ impl TryFrom<SearchQueryGet> for SearchQuery {
let attributes_to_crop = other
.attributes_to_crop
.map(|attrs| attrs.split(',').map(String::from).collect::<HashSet<_>>());
.map(|attrs| attrs.split(',').map(String::from).collect::<Vec<_>>());
let attributes_to_highlight = other
.attributes_to_highlight