Hey team,
My names Jack. I’m an ex-PM who’s dabbling in some development.
I’m trying to filter my search results on a Webflow site. When I make a request, I get this error
'filters: Unexpected token string(swimming) expected numeric at col 12'
swimming
is one of the values on a field called Disciplines
. The field is an array in Algolia. It could be [swimming, running, cycling], [running, cycling], [running] etc. I want to return all results that have swimming
in the array.
{
"Name": "Tropical Triathlon",
"Slug": "tropical-triathlon",
"Item ID": "64ccfaf102b63f49269cad89",
"Country": "USA",
"Disciplines": [
"swimming",
"cycling",
"running"
],
"Description": "Miami's tropical climate offers the perfect setting for this diverse triathlon. From sandy beaches to city streets, it's a race to remember.",
"City": "Miami",
"State_Province": "FL",
"Date": "2023-10-29T10:15:00.000Z",
"_geoloc": {
"lat": 25.76168,
"lng": -80.191791
},
"objectID": "154819a97d8d31_dashboard_generated_id"
}
I’ve added it as a searchableAttributes
and a attributesForFaceting
.
The query is https://########-dsn.algolia.net/1/indexes/treccy_races_all/query?hitsPerPage=20&aroundLatLng=43.6492031,-79.3870244&aroundRadius=5000000&filters=Disciplines=swimming
Can someone please help?
Thanks