- Issue created by @scott_earnest
- πΊπΈUnited States scott_earnest
Something to note - in our case we are using search_api_opensearch - which will not set the limit (size) parameter if it is "0". We were seeing the default value for this api which was 10 records. Perhaps using other search api's "0" means "unlimited"?
- Merge request !262Issue #3492078 by scott_earnest: Hard limit selection on facets exposed filters β (Open) created by scott_earnest
- πΊπΈUnited States scott_earnest
Testing Instructions
Create a Search API Index based view
Create a facet exposed filter
Find the new (old) field for "Hard limit"
Verify this will affect the total number of options in the facet dropdown (you should be able to see this in the preview) - π¬π§United Kingdom griz
I'm also using OpenSearch and have experienced the same behaviour. This patch works for me.
- π¨π¦Canada sagesolutions
I'm using OpenSearch as the indexing backend, on Drupal 10 and Facets 3.0.0. The default is 10 items when no limit is set. Adding this patch allowed me to set the limit so I could show more.
Marking as RTBC
- π§πͺBelgium StryKaizer Belgium
Thanks,
I do wonder, why hardcode the options? Wouldnt it make more sense to just use a numberfield, which allows the user to pick whatever they prefer?