Open mhernesniemi opened 4 months ago
Problem:
Error: MeiliSearchCommunicationError: Unknown field facetsDistribution: expected one of q, vector, hybrid, offset, limit, page, hitsPerPage, attributesToRetrieve, attributesToCrop, cropLength, attributesToHighlight, showMatchesPosition, showRankingScore, showRankingScoreDetails, filter, sort, facets, highlightPreTag, highlightPostTag, cropMarker, matchingStrategy, attributesToSearchOn
facetsDistribution
q
vector
hybrid
offset
limit
page
hitsPerPage
attributesToRetrieve
attributesToCrop
cropLength
attributesToHighlight
showMatchesPosition
showRankingScore
showRankingScoreDetails
filter
sort
facets
highlightPreTag
highlightPostTag
cropMarker
matchingStrategy
attributesToSearchOn
Fix:
Update to "@meilisearch/instant-meilisearch": "^0.17.0"
and change search-client.ts line 8:
export const { searchClient } = instantMeiliSearch(endpoint, apiKey)
Nice catch, happy to accept a PR with your fix!
Problem:
Fix:
Update to "@meilisearch/instant-meilisearch": "^0.17.0"
and change search-client.ts line 8:
export const { searchClient } = instantMeiliSearch(endpoint, apiKey)