You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I created term panel with mean mode and I check Other, like this:
And it looks like this:
I expect that Other values bar displays 0 value but it isn't
After some investigation i found that lines in terms/module.js
varsum=0;$scope.hits=results.response.numFound;
...
if($scope.panel.field&&$scope.fields.typeList[$scope.panel.field]&&$scope.fields.typeList[$scope.panel.field].schema.indexOf("T")>-1){$scope.hits=sum;}
...
$scope.data.push({label:'Other values',// data:[[k+1,results.facets.terms.other]],meta:"other",color:'#444'});// TODO: Hard coded to 0 for now. Solr faceting does not provide 'other' value.data:[[k+1,$scope.hits-sum]],meta:"other",color:'#444'});
So $scope.hits - sum = $scope.hits cause sum is equals 0
scope.fields.typeList based on /admin/luke?numTerms=0&wt=json respons.
For user_type_str it looks like this
The question is what is the purpose of checking if schema contains "T"?
And if there is some reason for it, how should I change my schema to work with it?
Maybe setting data should set 0 explicity: data:[[k+1, 0]],meta:"other",color:'#444'}
I use Banana 1.6.0
Note that using count mode works fine couse sum == $scope.hits
The text was updated successfully, but these errors were encountered:
krystiankaluzny
changed the title
Term panel with mean mode - other should be 0
Term panel with mean mode should display 0 other values
Apr 4, 2018
Hi,
I created term panel with mean mode and I check Other, like this:
And it looks like this:
I expect that Other values bar displays 0 value but it isn't
After some investigation i found that lines in terms/module.js
So
$scope.hits - sum = $scope.hits
cause sum is equals 0scope.fields.typeList based on /admin/luke?numTerms=0&wt=json respons.
For user_type_str it looks like this
My user_type_str configuration from managed-schema
The question is what is the purpose of checking if schema contains "T"?
And if there is some reason for it, how should I change my schema to work with it?
Maybe setting data should set 0 explicity:
data:[[k+1, 0]],meta:"other",color:'#444'}
I use Banana 1.6.0
Note that using count mode works fine couse
sum == $scope.hits
The text was updated successfully, but these errors were encountered: