Beispiel #1
0
 def regex(self,
           field: str,
           pattern: str,
           case_insensitive: bool = False,
           multiline: bool = False,
           dot_all: bool = False,
           verbose: bool = False):
     """Shortcut
     """
     return self.add(
         qu.And(
             qu.Regex(field, pattern, case_insensitive, multiline, dot_all,
                      verbose)))
Beispiel #2
0
 def text(self, search: str, language: str = None):
     """Shortcut
     """
     return self.add(qu.And(qu.Text(search, language)))
Beispiel #3
0
 def ninc(self, field: str, arg):
     """Shortcut
     """
     return self.add(qu.And(qu.Nin(field, arg)))
Beispiel #4
0
 def lte(self, field: str, arg):
     """Shortcut
     """
     return self.add(qu.And(qu.Lte(field, arg)))
Beispiel #5
0
 def gt(self, field: str, arg):
     """Shortcut
     """
     return self.add(qu.And(qu.Gt(field, arg)))
Beispiel #6
0
 def eq(self, field: str, arg):
     """Shortcut
     """
     return self.add(qu.And(qu.Eq(field, arg)))