Closed Richacinas closed 2 years ago
I also have another question:
How does the Typesense server store the elements that I'm setting up using this plugin (data-typesense-field)? I can't imagine how the Typesense server could get to know about these fields/items and then send a response with the hits.
Also, I can't see anything on the Typesense server logs that resembles a response. It is as if the response is being sent from somewhere else:
Closing in favor of #13. I've added my response there.
Sorry.. I don't know how I managed to open 2 issues!
Description
I always get a 200 response with this content:
I'm not sure if this error means that there is no coincidences on my search, or that the root resource is not found. I understand that is the server the one answering, so I guess I'm doing my request right.
Steps to reproduce
My Typesense server is started using docker. See this part of my docker-compose.yml:
Having this gatsby-config.js (I made it so you can see the important part):
And, considering I have my pages stored in the rootDir folder:
Containing some dom elements inside like this one:
And this React component:
I'm getting the response 404 - Not found
Here you can see the network request that is being used:
http://172.20.27.226:8108/multi_search?x-typesense-api-key=86c5153b35cf
Expected Behavior
When I search, for example, "Abrigo", I would expect the server to return some hits.
Actual Behavior
I always get the response I mentioned above.
Metadata
Typsense Version:
I have followed this guide: https://medium.com/swlh/building-a-search-bar-for-your-gatsbyjs-site-with-typesense-3e277dc33942
So I have a typesense server started with docker, which version is typesense/typesense:0.22.0.rcu7.
On the client, I have:
OS:
Ubuntu 20.04LTS on WSL (Windows 10)