Changeset 38106


Ignore:
Timestamp:
2023-09-13T11:24:18+12:00 (9 months ago)
Author:
kjdon
Message:

FacetWrapper getCounts now returns a List of FacetCounts - so we keep teh ordering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractGS2FieldSearch.java

    r33305 r38106  
    811811                    facet_list.appendChild(facet_elem);
    812812                   
    813                     HashMap<String, Long> countMap = currentFacet.getCounts();
    814                    
    815                     for(String countName : countMap.keySet())
     813                    List<FacetWrapper.FacetCount> countList = currentFacet.getCounts();
     814                    for (FacetWrapper.FacetCount thisCount : countList)
    816815                    {
    817                         long countValue = countMap.get(countName);
     816                        String countName = thisCount.name;
     817                        long countValue = thisCount.count;
    818818                        if(countValue > 0)
    819819                        {
Note: See TracChangeset for help on using the changeset viewer.