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

Order by term in terms agg #4285

Merged
merged 3 commits into from
Jun 26, 2015
Merged

Conversation

rashidkpc
Copy link
Contributor

Closes #1980 and enables ordering by term (eg, alphabetic) in the terms agg. Other changes:

  • top/bottom changed be ascending/descending.
  • Moved order selector to be under order by
  • Changed label writer for the terms to be the field_name: order. Removed size, you can easily judge size from the chart

@rashidkpc rashidkpc changed the title Feature/order by term Order by term in terms agg Jun 19, 2015
order._count = dir;
return;
}

if (!orderAgg) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move this up so it returns first when met, and remove the orderAgg && bit from what is currently line 140?

@w33ble
Copy link
Contributor

w33ble commented Jun 24, 2015

Besides that one small change, this looks good. Go ahead and assign it to someone else for final looks once that change is made.

@w33ble w33ble assigned rashidkpc and unassigned w33ble Jun 24, 2015
@rashidkpc rashidkpc assigned lukasolson and unassigned rashidkpc Jun 25, 2015
@lukasolson
Copy link
Member

LGTM.

lukasolson added a commit that referenced this pull request Jun 26, 2015
@lukasolson lukasolson merged commit 41ab57a into elastic:master Jun 26, 2015
@spalger spalger mentioned this pull request Sep 9, 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.

3 participants