From 61b9bc1d40610af6205a94ed18686008e991ee18 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 29 Mar 2021 15:07:48 +0000 Subject: - Use a LookupKey to further delay data conversion until we know it is necessary. - GC unused code --- searchcore/src/tests/proton/matching/query_test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'searchcore') 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); -- cgit v1.2.3