mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged searchrep (5.2.1) to 5.2.N (5.2.1)
136998 ahind: SEARCH-455 Stats pivot fails on SOLR 4 - ignore legacy facets entry in SOLR 4 stats response git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137083 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -480,6 +480,8 @@ public class SolrJSONResultSet implements ResultSet, JSONResult
|
||||
return new ListMetric(metricType, val);
|
||||
case percentiles:
|
||||
return new PercentileMetric(metricType, val);
|
||||
case facets:
|
||||
return null;
|
||||
case mean:
|
||||
if ("NaN".equals(String.valueOf(val))) return null; //else fall through
|
||||
default:
|
||||
|
@@ -32,7 +32,7 @@ import java.util.Map;
|
||||
*/
|
||||
public interface Metric
|
||||
{
|
||||
public static enum METRIC_TYPE {count, min, max, sum, missing, sumOfSquares, mean, stddev, countDistinct, cardinality, distinctValues, percentiles};
|
||||
public static enum METRIC_TYPE {count, min, max, sum, missing, sumOfSquares, mean, stddev, countDistinct, cardinality, distinctValues, percentiles, facets};
|
||||
|
||||
METRIC_TYPE getType();
|
||||
Map<String, Object> getValue();
|
||||
|
Reference in New Issue
Block a user