Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

feat(disjunctiveFacetParams): reduce payload size #912

Merged
merged 6 commits into from
Jun 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/requestBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ var requestBuilder = {
var numericFilters = requestBuilder._getNumericFilters(state, facet);
var tagFilters = requestBuilder._getTagFilters(state);
var additionalParams = {
hitsPerPage: 1,
hitsPerPage: 0,
page: 0,
attributesToRetrieve: [],
attributesToHighlight: [],
attributesToSnippet: [],
tagFilters: tagFilters,
analytics: false,
clickAnalytics: false
Jerska marked this conversation as resolved.
Show resolved Hide resolved
};

if (tagFilters.length > 0) {
additionalParams.tagFilters = tagFilters;
}
Jerska marked this conversation as resolved.
Show resolved Hide resolved

var hierarchicalFacet = state.getHierarchicalFacetByName(facet);

Expand Down