diff --git a/src/calibre/library/caches.py b/src/calibre/library/caches.py index 92c5ca9b3c..663b2b71ab 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -556,7 +556,7 @@ class ResultCache(SearchQueryParser): # {{{ return matchkind, query def get_bool_matches(self, location, query, candidates): - bools_are_tristate = not self.db_prefs.get('bools_are_tristate') + bools_are_tristate = self.db_prefs.get('bools_are_tristate') loc = self.field_metadata[location]['rec_index'] matches = set() query = icu_lower(query)