mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01:00
fix the faceted_fields one last time
This commit is contained in:
parent
f346805c0c
commit
3db25153e5
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user