// check table name
query.addFacetField("pjsponsor_filter");
query.addFacetField("pjstatus_filter");
query.setRows(0);
QueryResponse qResponse = ((CrisSearchService) searchService)
.search(query);
FacetField facetField = qResponse.getFacetField("pjsponsor_filter");
List<DiscoverResult.FacetResult> sponsors = new ArrayList<DiscoverResult.FacetResult>();
List<Count> values = facetField.getValues();
if (values != null)
{
for (FacetField.Count facetValue : values) {
DiscoverResult.FacetResult fr = searchService.getDiscoveryFacet(context, facetField, facetValue);
sponsors.add(fr);
}
}
FacetField facetFieldStatus = qResponse.getFacetField("pjstatus_filter");
List<DiscoverResult.FacetResult> status = new ArrayList<DiscoverResult.FacetResult>();
List<Count> valuesStatus = facetFieldStatus.getValues();
if (valuesStatus != null)
{