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); builder.set_searchable_fields(searchable_fields);
let faceted_fields = [ let faceted_fields = [
("released-timestamp", "number"), "released-timestamp",
("duration-float", "number"), "duration-float",
("genre", "string"), "genre",
("country", "string"), "country",
("artist", "string"), "artist",
] ]
.iter() .iter()
.map(|(a, b)| (a.to_string(), b.to_string())) .map(|s| s.to_string())
.collect(); .collect();
builder.set_faceted_fields(faceted_fields); builder.set_faceted_fields(faceted_fields);
} }