summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/matching/query_test.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/matching/query_test.cpp b/searchcore/src/tests/proton/matching/query_test.cpp
index 696b13c4e21..02e6b05622e 100644
--- a/searchcore/src/tests/proton/matching/query_test.cpp
+++ b/searchcore/src/tests/proton/matching/query_test.cpp
@@ -164,6 +164,17 @@ fef_test::IndexEnvironment plain_index_env;
fef_test::IndexEnvironment resolved_index_env;
fef_test::IndexEnvironment attribute_index_env;
+vespalib::string
+termAsString(const search::query::Range &term) {
+ vespalib::asciistream os;
+ return (os << term).str();
+}
+
+const vespalib::string &
+termAsString(const vespalib::string & term) {
+ return term;
+}
+
void setupIndexEnvironments()
{
FieldInfo field_info(FieldType::INDEX, CollectionType::SINGLE, field, field_id);