@junedc you're sending a request to http://localhost:7700/multi-search, but the correct endpoint should include the indexUID like this http://localhost:7700/indexes/{indexUid}/multi-search.
Apr 29, 2024
3
Level 1
MeiliSearch multi-search route throwing 404 error
On PostMan, creating a post request using index search somehow works
curl --location 'http://localhost:7700//indexes/e99f2662-5d20-4157-b45e-71fb810f1d7b-applications-index/search' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer masterKey' \
--data '{
"q": "FR",
"limit": 20
}'
however, using multi-search route, system throws 404 error which is kind of odd because the url is the same and multi-search is exposed by MeiliSearch. anybody manage to experience and fix this error? thanks for the help.
curl --location 'http://localhost:7700/multi-search' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer masterKey' \
--data ' {"queries": [
{
"indexUid": "e99f2662-5d20-4157-b45e-71fb810f1d7b-applications-index",
"q": "0001"
}
]
}'
Please or to participate in this conversation.
