mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
(cherry picked from commit 295a8f7ba2
)
This commit is contained in:
@@ -267,13 +267,14 @@ public class SolrJSONResultSet implements SearchEngineResultSet {
|
|||||||
ArrayList<Pair<String, Integer>> facetValues = new ArrayList<Pair<String, Integer>>(facetArraySize/2);
|
ArrayList<Pair<String, Integer>> facetValues = new ArrayList<Pair<String, Integer>>(facetArraySize/2);
|
||||||
for(int i = 0; i < facetArraySize; i+=2)
|
for(int i = 0; i < facetArraySize; i+=2)
|
||||||
{
|
{
|
||||||
|
String facetEntryName = "Null";
|
||||||
if(!facets.isNull(i))
|
if(!facets.isNull(i))
|
||||||
{
|
{
|
||||||
String facetEntryName = facets.getString(i);
|
facetEntryName = facets.getString(i);
|
||||||
Integer facetEntryCount = Integer.valueOf(facets.getInt(i + 1));
|
|
||||||
Pair<String, Integer> pair = new Pair<String, Integer>(facetEntryName, facetEntryCount);
|
|
||||||
facetValues.add(pair);
|
|
||||||
}
|
}
|
||||||
|
Integer facetEntryCount = Integer.valueOf(facets.getInt(i + 1));
|
||||||
|
Pair<String, Integer> pair = new Pair<String, Integer>(facetEntryName, facetEntryCount);
|
||||||
|
facetValues.add(pair);
|
||||||
}
|
}
|
||||||
fieldFacets.put(fieldName, facetValues);
|
fieldFacets.put(fieldName, facetValues);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user