From 5f313330571f85bfc0bd2c5ec1a3873743e1e8a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Lindo?= Date: Fri, 6 Dec 2024 15:39:14 +0000 Subject: [PATCH] sort hits by count desc --- .../common/server/index/utils/SolrUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/databasepreservation/common/server/index/utils/SolrUtils.java b/src/main/java/com/databasepreservation/common/server/index/utils/SolrUtils.java index de5d2216..48fb8e2c 100644 --- a/src/main/java/com/databasepreservation/common/server/index/utils/SolrUtils.java +++ b/src/main/java/com/databasepreservation/common/server/index/utils/SolrUtils.java @@ -427,7 +427,7 @@ public static List parseSorter(Sorter sorter) { private static void parseAndConfigureFacets(Facets facets, SolrQuery query) { if (facets != null) { - query.setFacetSort(FacetParams.FACET_SORT_INDEX); + query.setFacetSort(FacetParams.FACET_SORT_COUNT); if (!"".equals(facets.getQuery())) { query.addFacetQuery(facets.getQuery()); }