addsearch-js-client
Advanced tools
Comparing version 0.8.4 to 0.8.5
{ | ||
"name": "addsearch-js-client", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"description": "AddSearch API JavaScript client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -85,4 +85,3 @@ 'use strict'; | ||
settingToQueryParam(settings.searchOperator, 'defaultOperator') + | ||
settingToQueryParam(settings.analyticsTag, 'analyticsTag') + | ||
settingToQueryParam(settings.hierarchicalFacetSetting, 'hierarchicalFacets'); | ||
settingToQueryParam(settings.analyticsTag, 'analyticsTag'); | ||
@@ -117,6 +116,11 @@ // Add sortBy and sortOrder | ||
if (settings.rangeFacets) { | ||
qs = qs + '&rangeFacets=' + JSON.stringify(settings.rangeFacets); | ||
qs = qs + '&rangeFacets=' + encodeURIComponent(JSON.stringify(settings.rangeFacets)); | ||
} | ||
// Hierarchical facets | ||
if (settings.hierarchicalFacetSetting) { | ||
qs = qs + '&hierarchicalFacets=' + encodeURIComponent(JSON.stringify(settings.hierarchicalFacetSetting)); | ||
} | ||
// Stats fields | ||
@@ -123,0 +127,0 @@ if (settings.statsFields) { |
@@ -179,3 +179,3 @@ 'use strict'; | ||
this.addHierarchicalFacetSetting = function(setting) { | ||
this.settings.hierarchicalFacetSetting = JSON.stringify(setting); | ||
this.settings.hierarchicalFacetSetting = setting; | ||
} | ||
@@ -182,0 +182,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141478
1054