Session Ready
Exercise

Composing filters

It is often useful to incrementally build up a filter document in order to see the effect of adding constraints one at a time. In this exercise, we will count the number of laureate documents matching some criteria, and we will gradually add criteria.

Instructions 1/3
undefined XP
  • 1
    • Create a filter criteria to count laureates who died ("diedCountry") in the USA ("USA"). Save the document count as count.
    • 2
      • Create a filter to count laureates who died in the United States but were born ("bornCountry") in Germany.
    • 3
      • Count laureates who died in the USA, were born in Germany, and whose first name ("firstname") was "Albert".