...
|
...
|
@@ -238,14 +238,6 @@ public class SearchSortHelper { |
|
|
activitySort.setNestedFilter(activitiesTermsBuilder);
|
|
|
}
|
|
|
sortBuilders.add(activitySort);
|
|
|
} else if (fieldName.contains("pools")) {
|
|
|
BoolQueryBuilder poolsTermsBuilder = searchCommonHelper.getPoolIdTermsBuilder(paramMap);
|
|
|
String flag = sortOrder.toString().equals("desc") ? "_last" : "_first";
|
|
|
FieldSortBuilder poolsFieldSortBuilder = SortBuilders.fieldSort(fieldName).order(sortOrder).setNestedPath("pools").missing(flag);
|
|
|
if (poolsFieldSortBuilder != null) {
|
|
|
poolsFieldSortBuilder.setNestedFilter(poolsTermsBuilder);
|
|
|
}
|
|
|
sortBuilders.add(poolsFieldSortBuilder);
|
|
|
} else {
|
|
|
this.addSortBuildSorts(sortBuilders, filteredFieldNames, fieldName, sortOrder);
|
|
|
}
|
...
|
...
|
|