-
Notifications
You must be signed in to change notification settings - Fork 736
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
Split Filters aggregation #936
Comments
@ewgRa If array key will be quoted will it be a valid filter name? |
@ewgRa In case elasticsearch does not allow the mix, I suggest we also prevent it in Elastica and give the user an exception. |
Yes, it is valid:
In buckets there will be "0" key. I already add this case to tests in #935. Just fyi: "e'räro"rs" also valid, becomes in results "e'räro"rs" |
@ruflin but in exists class? you don't want to split it to be close to Elasticsearch? |
@ewgRa No I would not split the class, but throw an error before elasticsearch has to do it. This is more convenience for the person that implements it. Instead of getting a response exception and having to figure out what is going on, it is already thrown before the request is sent and is very specific. |
PR for prevent mixing keys - #939 |
In elasticsearch we can't mix anonymous and named filters in one query
Such queries is not possible:
Answer buckets always will be or all anonymous, or all named.
My suggestion is to split Filters on NamedFilters and AnonymousFilters and deprecate Filters.
Now code allow add named and anonymous filters simultaneously, that give unexpected results.
Any comments?
The text was updated successfully, but these errors were encountered: