-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to make .filter(field__in=[value1,value2] #50
Comments
it is quite different. I do not want to use the "in" operator. I want to get satisfying results. Your example only checks the condition of the occurrence of the results. |
Ok i might have closed this issue a bit hastily, did you try with the __contains lookup ? If it doesn't work I will need a complete use case to make sure it's not feasible before adding a new functionality. |
For example, I have Params model.
|
My models classes:
For query
But results must be with obj 1-7 values. |
|
It is normal. |
I'm not sure I understand what you mean, if you want documents with "obj" being equal to "7", you can use range(1, 7) ? |
@lauxley this behavior is very strange. Could we using finding_multiple_exact_values for this case? |
As stated in #53 we may need another lookup for this or at the very least to investigate a little bit more. |
I added some fixes to PR #53. Now may use MyModel.es.filter(field__in=['one', 'two']). |
It`s look like possible:
Finding Multiple Exact Values
The text was updated successfully, but these errors were encountered: