+ ConstantNetwork.ENTITY_RP);
solrQuery.addFacetField(FACET_METRICS);
solrQuery.setFacetLimit(Integer.MAX_VALUE);
solrQuery.setFacetMinCount(1);
solrQuery.setRows(0);
QueryResponse rsp = getService().search(solrQuery);
FacetField facets = rsp.getFacetField(FACET_METRICS);
// for each interests get authority's authors
List<ResearcherPage> result = new LinkedList<ResearcherPage>();
int counter = 0;
external: for (Count facetElement : facets.getValues())
{
counter++;
log.debug("" + counter + " of " + facets.getValueCount());
ResearcherPage researcher = null;
try
{
String facetValue = facetElement.getName();
Integer realPersistentIdentifier = ResearcherPageUtils
.getRealPersistentIdentifier(facetValue, ResearcherPage.class);
researcher = applicationService
.get(ResearcherPage.class, realPersistentIdentifier);
//researcher.getDynamicField().setAnagraficaLazy(applicationService.getAnagraficaByRP(realPersistentIdentifier));
solrQuery = new SolrQuery();
solrQuery.setQuery("type:" + getType() + " AND entity:" + ConstantNetwork.ENTITY_RP + " AND " + FACET_METRICS + ":\"" + facetValue + "\"");
solrQuery.addFacetField(FACET_SEARCH);
solrQuery.setFacetMinCount(1);
solrQuery.setFacetLimit(Integer.MAX_VALUE);
solrQuery.setRows(0);
rsp = getService().search(solrQuery);
FacetField relations = rsp.getFacetField(FACET_SEARCH);
int i = 0;
int nConnections = 0;
int maxStrength = 0;
int sumStrength = 0;
List<Long> quadraticVarianceArrays = new ArrayList<Long>();