When using the C# library to query an index in Algolia, the following error appeared after I attempted to filter the query on one of my facets:
filters: Unexpected token string(organic) expected end of filter at col 17
 |
Algolia - unexpected token organic |
How I was setting the filter was:
query.SetFilters("categories:a spaced value");
The error was because of the spaces in the filter/facet value I was trying to set. The correct way to call which resolved the error was:
query.SetFilters("categories:\"a spaced value\"");
No comments:
Post a Comment