Skip to content

Instantly share code, notes, and snippets.

@plajjan
Created November 6, 2013 16:23
Show Gist options
  • Save plajjan/7339190 to your computer and use it in GitHub Desktop.
Save plajjan/7339190 to your computer and use it in GitHub Desktop.
query_parts.append({
'operator': 'or',
'val1': {
'operator': 'or',
'val1': {
'operator': 'or',
'val1': {
'operator': 'or',
'val1': {
'operator': 'regex_match',
'val1': 'comment',
'val2': query_str_part['string']
},
'val2': {
'operator': 'regex_match',
'val1': 'description',
'val2': query_str_part['string']
}
},
'val2': {
'operator': 'regex_match',
'val1': 'node',
'val2': query_str_part['string']
}
},
'val2': {
'operator': 'regex_match',
'val1': 'order_id',
'val2': query_str_part['string']
},
}
'val2': {
'operator': 'regex_match',
'val1': 'customer_id',
'val2': query_str_part['string']
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment