Allow defining maxFacetHits
independently from showMoreLimit
in refinementLists that are searchable
#4500
Unanswered
yonguelink
asked this question in
General
Replies: 1 comment 1 reply
-
It may make sense to limit https://github.com/algolia/instantsearch.js/blob/master/src/connectors/refinement-list/connectRefinementList.js#L252 to 100 automatically so no error gets displayed, so that would become: helper
.searchForFacetValues(attribute, query, Math.max(getLimit(isShowingMore), 100), tags) We probably want to add a Would you be willing to make a pull request limiting the maxFacetHits? In the mean time what you would be able to do (not so ideal, but possible) is create a custom search client (docs) and transform the parameter What do you think? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A refinementList that is
searchable
and hasshowMore: true
&showMoreLimit
set to > 100 & you have clicked theShow more
button, the search box does not work. That's because themaxFacetHits
is limited to 100 for performance reasons.Steps to reproduce the behavior
Show more
Live reproduction:
https://codesandbox.io/s/infallible-aryabhata-l1w8x
🖥 Screenshots
Feature suggestion
I think it'd be a good option to be able to define
maxFacetHits
independently from theshowMoreLimit
in refinement lists. That way we'd be able to show however many values in one when no search is applied and still respect the API formaxFacetHits
.Beta Was this translation helpful? Give feedback.
All reactions