diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-02 16:38:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 16:38:32 +0200 |
commit | e3ee4675463c373d699f6f31479d171868bcfc7e (patch) | |
tree | d1e2e44f3b5244cce024196ae0ef1045305ffaa0 /searchsummary | |
parent | 37f0d3a64511b0dd0d902053be3a6cffc21acee6 (diff) | |
parent | 84d36247026420bde80c60517f0a1d55e56de698 (diff) |
Merge pull request #23908 from vespa-engine/balder/wire-in-summary-fields-for-streaming-too
Balder/wire in summary fields for streaming too
Diffstat (limited to 'searchsummary')
-rw-r--r-- | searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.cpp | 5 | ||||
-rw-r--r-- | searchsummary/src/vespa/searchsummary/docsummary/getdocsumargs.h | 3 |
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); }; } |