Hi, I am trying get the results of my facet-query in a sorted order.
This is the code snippet: SolrQuery solrQuery = new SolrQuery(); solrQuery.setFacet(true); solrQuery.setFacetLimit(100); solrQuery.setFacetMinCount(1); solrQuery.setStart(0); solrQuery.setRows(0); solrQuery .addFacetFeilds("loginUser"); solrQuery.setFacetSort(FacetParams.FACET_SORT_COUNT); When I do "solrQuery.setFacetSort(FacetParams.FACET_SORT_COUNT)", it sorts the results in Descending order of counts. I have been trying to find out a way to get the facet results in ascending order of counts. I couldnot look up online to find a way to do this. Is there a way to achieve this? Thanks, Harish