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

Support for arrays of numeric values in include/exclude clauses #7727

Closed
wants to merge 1 commit into from
Closed

Support for arrays of numeric values in include/exclude clauses #7727

wants to merge 1 commit into from

Conversation

markharwood
Copy link
Contributor

Changed terms and significant_terms aggregation to allow include/exclude values which are numerics.
Internally the IncludeExclude class now has a convertToLong/DoubleFilter method to convert the string representation of user criteria into a class with sets of primitive numerics used for fast evaluation of filters.

Closes #7714

@@ -46,13 +48,16 @@
protected final LongHash bucketOrds;
private boolean showTermDocCountError;
private SortedNumericDocValues values;
private IncludeExclude includeExclude;
private LongFilter longFilter;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused field, maybe remove it?

@martijnvg
Copy link
Member

Left a minor comment, other than that LGTM

@markharwood
Copy link
Contributor Author

Thanks for the review, @martijnvg
I have removed the unused field, rebased and reran tests.
Will push to 1.x and master if no objections

@markharwood
Copy link
Contributor Author

Pushed as 4f69a98

@clintongormley clintongormley changed the title Aggs - support for arrays of numeric values in include/exclude clauses Support for arrays of numeric values in include/exclude clauses Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Aggs: filtering values using array of values, including numeric values
3 participants