Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-1703

CrowdEntityQueryParser returns randomly ordered results from performOrUserSearch

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Low Low
    • None
    • 1.6.2
    • None

       Set<SOAPPrincipal> results = new HashSet<SOAPPrincipal>();
      
              for (TermQuery query : queries)
              {
                  List<SOAPPrincipal> termResults = performUserSearch(query);
                  results.addAll(termResults);
              }
      
              return new ArrayList<SOAPPrincipal>(results);
      

      will return a randomly ordered list. The set should probably be a TreeSet, and order each entry by name (or whatever logically sorts each of the constituent queries, if there is such a concept. If not maybe fullname?).

              Unassigned Unassigned
              alynch Andrew Lynch (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: