Hi; When I try this:
... Set<String> urlSet = new HashSet<>(); Map<String, String> urlMap = new HashMap<>(); ... solrParams = new ModifiableSolrParams(); solrParams.add("q", "*"); solrParams.add("fq", "-title:[* TO *]"); solrParams.add("start", start.toString()); solrParams.add("rows", step.toString()); solrParams.add("sort", "url asc"); solrParams.add("group", "true"); solrParams.add("group.field", "domain"); solrParams.add("group.limit", "1"); solrParams.add("fl", "url,domain"); List<GroupCommand> groupCommands = solrResponse.getGroupResponse().getValues(); for (GroupCommand groupCommand : groupCommands) { for (Group group : groupCommand.getValues()) { for (SolrDocument solrDocument : group.getResult()) { String url = (String) solrDocument.get("url"); String domain = (String) solrDocument.get("domain"); urlSet.add(url); urlMap.put(domain, url); } } } ... urlSet size and urlMap size are not same. On the other hand urlMap size changes at every run? PS: domain is required field at schema. Thanks; Furkan KAMACI