fix the faceted_fields one last time

This commit is contained in:
Tamo 2021-06-02 17:00:58 +02:00
parent f346805c0c
commit 3db25153e5
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -21,14 +21,14 @@ fn base_conf(builder: &mut Settings) {
builder.set_searchable_fields(searchable_fields);
let faceted_fields = [
("released-timestamp", "number"),
("duration-float", "number"),
("genre", "string"),
("country", "string"),
("artist", "string"),
"released-timestamp",
"duration-float",
"genre",
"country",
"artist",
]
.iter()
.map(|(a, b)| (a.to_string(), b.to_string()))
.map(|s| s.to_string())
.collect();
builder.set_faceted_fields(faceted_fields);
}