Search on facet values when sorting
Strift opened this issue · comments
Description
- can't search for facet values when sorting
Expected behavior
- facet search should work
Current behavior
- facet search does not work after applying sorting
Reproduction
- navigate to ecommerce.meilisearch.com
- sort product eg. by price (on the right) — this works
- search in the “category” facet input — this doesn’t
Errors in the console
POST https://ms-41598e7e5e23-106.sfo.meilisearch.io/indexes/products:price:asc/facet-search 400
Uncaught (in promise) MeiliSearchApiError: `products:price:asc` is not a valid index uid. Index uid can be an integer or a string containing only alphanumeric characters, hyphens (-) and underscores (_).
at entry.db00d9dc.js:5:47462
at Generator.next (<anonymous>)
at a (entry.db00d9dc.js:5:46195)
Environment (please complete the following information):
- Meilisearch version: v1.3.0
- instant-meilisearch version: v0.13.4
Tested the the search for facets today with the same version as you used, and encounter the same bug.
Can confirm this is the case.
From what I can tell, this happens because of how Angolia sorting works (via Index name). It passes the wrong index name to MeiliSearch (in the case above, products:price:asc
).
Hey everyone!
We'll be fixing this bug ASAP. Thanks for raising it :)