Queries are hitting 32 filter limit prematurely.
See original GitHub issueDescribe the bug
- I am trying to use an array to filter which records should be returned.
- I am passing an array of ~500 values in. I am getting the error ‘An unexpected error occurred: [400] Filters cannot have more than 32 filters’
- I am have done so trying to follow the guidance laid out here:
To Reproduce
const config: SearchDriverOptions = { searchQuery: { facets: buildFacetConfigFromConfig(), disjunctiveFacets: ["level", "castingtime", "rarity", "ispfslegal", "traits", "subtype", "school", "area", "duration", "range", "savingthrow", "targets"], ...buildSearchOptionsFromConfig(), filters: [ { field: "nethysid", type: "any", values: spellsToShowIDs } ] }, autocompleteQuery: buildAutocompleteQueryConfig(), apiConnector: connector, alwaysSearchOnInitialLoad: true };
Expected behavior I expect the array spellsToShowIDs to filter successfully.
Screenshots We can see the array size that i’m using, and the log of the config object here: We can see the request here:
Which backends and packages are you using: Backend: [App Search] Packages: [react-search-ui, search-ui-app-search-connector]
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top GitHub Comments
now been released under v1.18.1 🎉 This change will rollup the filters into a single multi value OR or NOT type filter. an AND type filter still will need a filter per value.
no update yet @wentaoxu415. I will try get this prioritized.