Is it possible to search within a list? (intersect and/or range)

Hey there,

Say I have an index that looks like this:

name: string
favourite_numbers: list of ints
visited_countries: list of strings

In my UI I would have 2 fields:

  • Countries (list of checkboxes)
  • Favourite number range

Both would be an array, countries would be a list of strings and the number range would be an list with 2 items: min and max.

I would like to use the countries list to check if a person has visited any of the countries (like an intersect) and the numbers to see whether any of the favourite numbers is in the list.

Is something like this possible?

If it’s not, how else could I approach something like this?