-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FacetValue contains colon #1150
Comments
I think this is the problematic line: https://github.com/meilisearch/instant-meilisearch/blob/main/packages/instant-meilisearch/src/adapter/search-request-adapter/filter-adapter.ts#L17 |
Thanks @Skillkiller, indeed that's an unfortunate bug. What is happening is that Since the character Let's imagine a facet: "game:Hunt" and a facet value "Show:down", instantsearch would provide me the following: One of the solution to this issue would be to cache the facets and use them to try to infer where to split. In your case, we would have been able to match I say caching as we cannot use the |
Maybe is necessary to add the possibility to escape @Skillkiller How did you resolve this issue? |
@angelcervera My current workaround is that I no longer save a colon in Meilisearch. Before I save the data in Meilisearch, I replace all |
Description
Hello,
I use instant-meilisearch in conjunction with instantsearch.js. There I have added a refinementList which should allow to narrow down the search based on the games. Some games also contain a colon(
:
) in the name, for these games the search fails because an incorrect search condition was created. For clarification I have added a screenshot and 2 sample HTTP requests from the browser dev tool.Search UI:
Expected behavior
With dbd selected request:
POST http://localhost:7700/multi-search
Current behavior
When i select a game with a
:
in the name:POST http://localhost:7700/multi-search
The colon seems to cause the filter condition to be formatted incorrectly. I tried it with refinementList({escapeFacetValues: true,...}) and false.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: