[ML] Add secondary sort to ML events (#31063)

This commit is contained in:
David Kyle 2018-06-04 16:31:35 +01:00 committed by GitHub
parent b422978c0c
commit 16d1f05045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ public class ScheduledEventsQueryBuilder {
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
searchSourceBuilder.sort(ScheduledEvent.START_TIME.getPreferredName());
searchSourceBuilder.sort(ScheduledEvent.DESCRIPTION.getPreferredName());
if (from != null) {
searchSourceBuilder.from(from);
}