-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meilisearch #3
Comments
ok will modify at weekend for the batch part |
a bit faster when only waiting last one for geoBoundingBox also still the same, 0 result |
that's really strange. Are there instructions somewhere on how to run it on my side? |
you can install golang, clone the repo, run
|
Hey, I've just seen your blogpost. It's awesome!
I can't really submit a PR because I don't know much about golang, but I see you had some issues with meilisearch, and I thought I could help!
1. This benchmark is totally unfair for Meilisearch since their API expects it to be batched
I don't think that's entirely true. Meilisearch can autobatch your updates on its side. The issue in your code is that between each update submitted to meilisearch, you wait until the task is processed:
As you said, ideally, you should batch your updates as much as possible. But if you don't, meilisearch should still be able to handle your data pretty fast.
In your case, I think the sensible thing would be to
WaitForTask
only once after inserting the 100k points.2. MeiliSearch, in this case, always returns 0 results. Not sure what's wrong.
I don't really understand what's wrong either yet.
I've seen this comment, though;
// _geoBoundingBox: [minLat, minLong, maxLat, maxLong] --> didn't work
And this is wrong, this is the accepted format by meilisearch;
So in your case, you should send something like that
_geoBoundingBox([maxLat, maxLong], [minLong, minLat])
I don't really understand this comment either, but if you were looking for the distance between your initial point and the results, meilisearch already computes that for you. It's added in all of your hits under the field
_geoDistance
.Don't hesitate if you have any questions!
The text was updated successfully, but these errors were encountered: