Add (limited) support for excluding documents based on conditions (like in Django).