question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Queries are hitting 32 filter limit prematurely.

See original GitHub issue

Describe 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: image We can see the request here: image

Which backends and packages are you using: Backend: [App Search] Packages: [react-search-ui, search-ui-app-search-connector]

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
joemcelroycommented, Oct 10, 2022

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.

1reaction
joemcelroycommented, Sep 8, 2022

no update yet @wentaoxu415. I will try get this prioritized.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Query and filter context | Elasticsearch Guide [8.5] | Elastic
In a filter context, a query clause answers the question “Does this document match ... Filter context is mostly used for filtering structured...
Read more >
Considerations and limitations for SQL queries in Amazon ...
Row or column size limitation – The size of a single row or its columns cannot exceed 32 megabytes. This limit can be...
Read more >
Quotas and limits | BigQuery - Google Cloud
This document lists the quotas and limits that apply to BigQuery. A quota restricts how much of a particular shared Google Cloud resource...
Read more >
Performance Tuning SQL Queries | Advanced SQL - Mode
Learn how to conduct SQL performance tuning by reducing table size, simplifying joins, & the EXPLAIN command in this advanced SQL tutorial.
Read more >
Azure subscription limits and quotas - Azure Resource Manager
Includes an up to 2048-bytes long query string. 10 To increase this limit, contact support. 11 Self-hosted gateways are supported in the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found