Skip to content

Instantly share code, notes, and snippets.

@notanumber
Created October 21, 2009 20:12
Show Gist options
  • Save notanumber/215424 to your computer and use it in GitHub Desktop.
Save notanumber/215424 to your computer and use it in GitHub Desktop.
def build_query(self):
values = []
return final_query
for child in self.query_filter.children:
if isinstance(child, self.query_filter.__class__):
print 'SQ: ', child # TODO: Recursive call down tree...
else:
expression, value = child
field, filter_type = self.query_filter.split_expression(expression)
values.append(value)
return xapian.Query(xapian.Query.OP_AND, values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment