String sID = getObjectId(id);
query = MessageFormat.format(query, sID);
solrQuery.setQuery(query);
if (getBean() instanceof BeanFacetComponent)
{
BeanFacetComponent beanFacet = (BeanFacetComponent) getBean();
solrQuery.setFacet(true);
solrQuery.addFacetQuery(beanFacet.getFacetQuery());
solrQuery.addFacetField(beanFacet.getFacetField());
}
solrResponse = solrServer.query(solrQuery);
if(!getBean().getSubQueries().isEmpty()) {
statisticDatasBeans.addValue(TOP, CrisConstants.getEntityTypeText(relationType), CATEGORY,
generateCategoryView(solrServer, TOP, relationType.toString(), CATEGORY, StatComponentsService.getTopCityLength(), query, getBean().getSubQueries(), sID));