Skip to content
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

Aggs: filtering values using array of values, including numeric values #7714

Closed
nezda opened this issue Sep 12, 2014 · 4 comments
Closed

Aggs: filtering values using array of values, including numeric values #7714

nezda opened this issue Sep 12, 2014 · 4 comments
Assignees

Comments

@nezda
Copy link

nezda commented Sep 12, 2014

In facets, we can filter a Terms Facet using an array of values, including numeric values:

{
    "query" : {
        "match_all" : { }
    },
    "facets" : {
        "tag" : {
            "terms" : {
                "field" : "tag_id",
                "exclude" : [101, 202]
            }
        }
    }
}

This cannot be achieved with the regular expression support in the current exclude syntax as it only support string fields. Some excellent work was done on #6782 to support string terms arrays but this complementary feature for numeric arrays is still missing.

There's a more detailed description in this email thread including a curl gist test case.

cc @micpalmia

@jplehmann
Copy link

+1

@gcarothers
Copy link

Thanks @nezda for pointing this out. I'd thought this was taken care of in #6782, seems odd that it only works for some types.

@micpalmia
Copy link
Contributor

thank you @nezda
obviously +1

@nezda
Copy link
Author

nezda commented Dec 5, 2014

When will this be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants