You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
searching from multiple inputs as filters on nested JSON [Question] #49
#how would i implement this if i needed to have multiple inputs (6 of them) as search filters that needed to be inclusive , ie.. if i search for a name, AND state, AND topic, it would return the results that match all the filters.
multiple filters seem to work if the json object is FLAT. and from one search box, my use case is having multiple input boxes and a heavily nested object.
I think this is a complex case that is out of scope of this library, however, you can use the code to create a custom filter.
A trick that I use when i encoutner this kind of problem is to add a new field en the object "searchField" that is the concatenation of the search fields, for eaxmple:
#how would i implement this if i needed to have multiple inputs (6 of them) as search filters that needed to be inclusive , ie.. if i search for a name, AND state, AND topic, it would return the results that match all the filters.
multiple filters seem to work if the json object is FLAT. and from one search box, my use case is having multiple input boxes and a heavily nested object.