コード例 #1
0
 def get_filter(self):
     # `should` with `minimum_should_match=1` acts like an OR filter
     return DSLQ("bool", should=self._from_children("get_filter"), minimum_should_match=1)
コード例 #2
0
ファイル: operators.py プロジェクト: Shibetendo64/kitsune
 def elastic_query(self, context):
     return DSLQ("bool", must=self.elastic_queries(self.arguments, context))
コード例 #3
0
ファイル: operators.py プロジェクト: Shibetendo64/kitsune
 def elastic_query(self, context):
     return DSLQ(
         "bool", minimum_should_match=1, should=self.elastic_queries(self.arguments, context)
     )
コード例 #4
0
ファイル: operators.py プロジェクト: Shibetendo64/kitsune
 def elastic_query(self, context):
     return DSLQ("bool", must_not=self.argument.elastic_query(context))