// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "numeric_matcher.h" #include namespace search::attribute { template NumericMatcher::NumericMatcher(const QueryTermSimple& queryTerm, bool avoidUndefinedInRange) : _value(0), _valid(false) { (void) avoidUndefinedInRange; QueryTermSimple::RangeResult res = queryTerm.getRange(); _valid = res.valid && res.isEqual() && !res.adjusted; _value = res.high; } }