Skip to content

Commit

Permalink
sort hits by count desc (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioG70 authored Dec 6, 2024
1 parent fdbbe96 commit 5b46689
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public static List<SolrQuery.SortClause> 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());
}
Expand Down

0 comments on commit 5b46689

Please sign in to comment.