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

Terms aggregation: add include_values #9738

Closed
ewgRa opened this issue Feb 18, 2015 · 1 comment
Closed

Terms aggregation: add include_values #9738

ewgRa opened this issue Feb 18, 2015 · 1 comment

Comments

@ewgRa
Copy link

ewgRa commented Feb 18, 2015

There is "include" in terms aggregation.

I want filter by array of values. For example record have "categories" field, and I want aggregate only by specific categories, not all categories.

I can make regular expression like "category1id|category2id" and use "include", or use "script" for this, but seems best performance will be reached by intersecting array.

@ewgRa ewgRa changed the title :Aggs Terms aggregation: add include_values Terms aggregation: add include_values Feb 18, 2015
@jpountz
Copy link
Contributor

jpountz commented Feb 18, 2015

Hi @ewgRa, this has been implemented in #7727 and will be in Elasticsearch 1.5.

@jpountz jpountz closed this as completed Feb 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants