message/document: update sexp on the fly
Keep the sexp for the document up to date during scan / change, instead of having a separate step.
This commit is contained in:
@ -177,7 +177,7 @@ process_range(const std::string& field_str,
|
||||
std::string u2 = upper;
|
||||
constexpr auto upper_limit = std::numeric_limits<int64_t>::max();
|
||||
|
||||
if (field_opt->id == Field::Id::Date || field_opt->id == Field::Id::Modified) {
|
||||
if (field_opt->id == Field::Id::Date || field_opt->id == Field::Id::Changed) {
|
||||
l2 = to_lexnum(parse_date_time(lower, true).value_or(0));
|
||||
u2 = to_lexnum(parse_date_time(upper, false).value_or(upper_limit));
|
||||
} else if (field_opt->id == Field::Id::Size) {
|
||||
|
||||
Reference in New Issue
Block a user