How to use the json.facet function in json

To help you get started, we’ve selected a few json examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github geonetwork / core-geonetwork / web-ui / src / main / resources / catalog / views / solr / solr.js View on Github external
let qParams = {
          any: $scope.anyField,
          params: {}
        };
        if ($scope.active) {
          let values           = {}
          values[resourceType] = true
          console.log(values);
          qParams.params.resourceType = {
            type   : 'field',
            values : values
          };
        }

        solrParams['json.facet'] = angular.toJson($scope.facetConfig);

        $scope.loading = true;
        $scope.promise = $scope.solrObject.searchWithFacets(
          qParams, solrParams
        );


      };