This commit is contained in:
Stefan Hardegger
2025-09-22 12:43:05 +02:00
parent b68fde71c0
commit 1f41974208
6 changed files with 17 additions and 8 deletions

View File

@@ -464,7 +464,13 @@ public class SolrService {
}
solrQuery.setRows(limit);
// Sort by storyCount if available, otherwise by name
solrQuery.setSort("storyCount", SolrQuery.ORDER.desc);
solrQuery.addSort("name", SolrQuery.ORDER.asc);
// Explicitly disable faceting to avoid range faceting issues
solrQuery.setFacet(false);
QueryResponse response = solrClient.query(properties.getCores().getAuthors(), solrQuery);