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
Hello 👋
Ran into a weird issue today.
I'm getting the Algolia search request/query from the frontend into my Lambda function which then executes the request and returns the result. The format of the request is an array like.
Then the search query happens but I get 0 hits and when I console.log(results) the query field is deformed. I assume 0 hits due to the query being deformed
but ideally the results should be like below (This is what I get when I console.log on an express server and I get the desired hits. Notice how it sends an object with a results field and the query attribute contains only the searched text)
The first argument to index.search is the query, however you probably meant to do client.search(requests), not client.initIndex().search(query, params)
Hello 👋
Ran into a weird issue today.
I'm getting the Algolia search request/query from the frontend into my Lambda function which then executes the request and returns the result. The format of the
request
is an array like.After that I search using the API client
Then the search query happens but I get 0 hits and when I
console.log(results)
thequery
field is deformed. I assume 0 hits due to the query being deformedbut ideally the
results
should be like below (This is what I get when Iconsole.log
on an express server and I get the desired hits. Notice how it sends an object with aresults
field and thequery
attribute contains only the searched text)Any idea what I did wrong 🤔 since I'm getting different results using the same method on lambda and express.
The text was updated successfully, but these errors were encountered: