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

AICORE-317: simplifying statistics to get terms and cardinality #210

Merged
merged 1 commit into from Jun 24, 2020

Conversation

andreinechaev
Copy link
Contributor

No description provided.

@nuxeojenkins
Copy link
Contributor

View issue in JIRA: AICORE-317: Fix statistics for getting terms and card

Copy link
Contributor

@PedroCardoso PedroCardoso left a comment

Choose a reason for hiding this comment

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

Text fields will have almost all values different, there is no point in doing a term aggregation on it. Also, AFAIK it is never used, only maybe for webapp in case we want to see it as category, definitely not for export data.

@@ -315,22 +300,25 @@ protected Long getOverallStats(List<PropertyType> featuresWithType, List<Statist
case TEXT_TYPE:
// TODO assuming that text is a property ! could be a blob
qb.addAggregate(makeAggregate(AGG_MISSING, propName, EMPTY_PROPS));
qb.addAggregate(makeAggregate(AGG_TYPE_TERMS, propName, TERM_PROPS));
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not need terms stats for Text fields.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually we do. If you take a look at where I removed them, we had it before. And yes - it's a UI case. But it's still a case

@andreinechaev andreinechaev merged commit 1d1bea9 into master Jun 24, 2020
@andreinechaev andreinechaev deleted the fix-AICORE-317-statistics-split branch June 24, 2020 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants