summaryrefslogtreecommitdiffstats
path: root/searchsummary/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-09-02 12:45:33 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-09-02 12:45:33 +0000
commit74429c99871a4be6e4a9d08ae2c45ce1593e8c42 (patch)
tree1a5dd48a04e3acdd5186b54c060e3de3a7e93562 /searchsummary/src
parentd1bb9992134d35e0f64a009575cbb96ffbffcd27 (diff)
Wire in list of summary fields in streaming too.
Diffstat (limited to 'searchsummary/src')
-rw-r--r--searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.cpp5
-rw-r--r--searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.cpp b/searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.cpp
index 739a6fae548..becaa6d1ab0 100644
--- a/searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.cpp
+++ b/searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.cpp
@@ -43,4 +43,9 @@ GetDocsumArgs::needField(vespalib::stringref field) const {
return _fields.empty() || _fields.contains(field);
}
+void
+GetDocsumArgs::add_field(vespalib::stringref field) {
+ _fields.insert(field);
+}
+
}
diff --git a/searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.h b/searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.h
index ff410fb298c..89816977290 100644
--- a/searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.h
+++ b/searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.h
@@ -19,7 +19,7 @@ private:
vespalib::string _location;
vespalib::duration _timeout;
fef::Properties _highlightTerms;
- FieldSet _fields;
+ FieldSet _fields;
public:
GetDocsumArgs();
GetDocsumArgs(const GetDocsumArgs &) = delete;
@@ -47,6 +47,7 @@ public:
const fef::Properties &highlightTerms() const { return _highlightTerms; }
bool needField(vespalib::stringref field) const;
+ void add_field(vespalib::stringref field);
};
}