-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Support multiple types in Type Query #23264
Comments
Why not wrapping the type queries within a bool query and 2 should clauses? |
Good idea. I will try that and post if it works, Thanks for the pointer. |
Sure, works. Thanks. Closing.
|
also note that we're planning on removing types: #15613 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a bit inconsistent that for URL queries it's possible to specify multiple types whereas the request body search only supports one single type.
Or maybe that can be done and it's just the documentation that's a bit thin there?
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-type-query.html
Generally, it might make sense to support the same syntax as for multi-index (https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-index.html, exclusion, inclusion, wildcards) also for multi-type? And ideally in both request body (DSL) as well as URL searches?
Example (AWS ES 5.1.1):
The text was updated successfully, but these errors were encountered: