summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-03-29 15:07:48 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-03-29 16:08:58 +0000
commit61b9bc1d40610af6205a94ed18686008e991ee18 (patch)
treeedc87306041288be953c1dc5083da99aa75903a2 /searchcore
parentd4712740d1281fa3a2fa945dfd3ea4c2182d663c (diff)
- Use a LookupKey to further delay data conversion until we know it is necessary.
- GC unused code
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);