search for: op_value_

Displaying 2 results from an estimated 2 matches for "op_value_".

Did you mean: op_value
2024 Apr 26
1
queries for a set of values
...ch does with terms: std::set<std::string> terms; // notmuch populates terms via terms.insert(*i)... Query(OP_OR, terms.begin(), terms.end()); // Disclaimer: I don't really know C++ With a set of integers I have (after sortable_serialise), would the best way be to OP_OR a bunch of OP_VALUE_RANGE queries together? So, perhaps something like: Query(OP_OR, Query(OP_VALUE_RANGE, column, v[0], v[0]), Query(OP_VALUE_RANGE, column, v[1], v[2]), Query(OP_VALUE_RANGE, column, v[3], v[3]), ... Query(OP_VALUE_RANGE, column, v[LAST], v[LAST])) // Or (totally not even compile-tested...
2024 Apr 26
2
queries for a set of values
...y, filter); The notmuch way will match nothing for that case so you need to conditionalise applying the filter (assuming you still want to match something when there are no filter terms). > With a set of integers I have (after sortable_serialise), would the > best way be to OP_OR a bunch of OP_VALUE_RANGE queries together? > > So, perhaps something like: > > Query(OP_OR, > Query(OP_VALUE_RANGE, column, v[0], v[0]), > Query(OP_VALUE_RANGE, column, v[1], v[2]), Did you mean 1 and 1 here? > Query(OP_VALUE_RANGE, column, v[3], v[3]), > ... > Query(OP_VALUE_...