-
Notifications
You must be signed in to change notification settings - Fork 62
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
whereIn
not accepting integers
#230
Comments
Can you locate where the error is from? As far as I know where and whereIn are part of Laravel and not Explorer. So I'm curious for the stacktrace :) |
Ah ok.
So they need to be strings for this Elasticsearch syntax. |
Hmm, but then why does |
Because where uses the Term syntax and whereIn uses Terms, and someone forgot to add the assertion to Term. 🕵️ |
Honestly, the where is working fine. So I think safe to remove the assertion from whereIn? |
Feel free to test, verify and if so create a PR! |
Hi 👋,
First of all thank you for this amazing package.
I Just started learning the basics of Elastic Search.
I was trying to do filtering like this:
It throws error:
Expected a string. Got: integer
If I do,
It works completely fine.
I mean I could definitely manually transform them to string,
Just the different allowed types for
where
andwhereIn
seemed odd.Is this intentional?
Thanks again 😊
The text was updated successfully, but these errors were encountered: