You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure it will work (or maybe I did not understand) because meilisearch, the search engine itself, is not able to accept escaped value.
I tried to create a facet field named -price and then to apply facet search on it , but the engine does not return anything
In Algolia, the escaped value is supported, so you can have a facetFilters: ["owner.id:-7"] to exclude data.
But the conversion from meilisearch-instantsearch is owner.id = -7
Maybe it could be possible to transform owner.id:-7 to owner.id != 7
Oh, in my previous message I confused with "search in facet value". We don't always have the same naming with Algolia.
I think I now better understand your issue. When you want to do filter, you want Meilisearch to send "filter": "\"field\" = \"my value\"" instead of "filter": "field = my value"?
Specifically, regarding what you said about the -: the search engine itself does not support the exclusion of some facets value or filter with - but with the NOT
Description
In Algolia we can exclude values by adding an escape character "-" as explain in documentation
https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/#escape-characters
Solution
Maybe add the conversion from attribute=-value to attribute!=value in file-adapter.ts
The text was updated successfully, but these errors were encountered: