diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-10-15 15:25:14 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-10-15 15:25:14 +0200 |
commit | 2031e5664673a18b72cbf79b8c4cb536405f933b (patch) | |
tree | 79bbec54ea1e37acc9e1c0879ec5081a7f34def9 /searchsummary/src | |
parent | c51b015a8dd8f9fc8f6c6f65c4ceab4090831df3 (diff) |
Enable map/array element filtering in document summary for streaming search.
Diffstat (limited to 'searchsummary/src')
-rw-r--r-- | searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.cpp | 7 | ||||
-rw-r--r-- | searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.cpp b/searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.cpp index 7c270d7184d..69085258a43 100644 --- a/searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.cpp +++ b/searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.cpp @@ -31,6 +31,13 @@ MatchedElementsFilterDFW::MatchedElementsFilterDFW(const std::string& input_fiel std::unique_ptr<IDocsumFieldWriter> MatchedElementsFilterDFW::create(const std::string& input_field_name, uint32_t input_field_enum, + std::shared_ptr<StructFieldMapper> struct_field_mapper) +{ + return std::make_unique<MatchedElementsFilterDFW>(input_field_name, input_field_enum, std::move(struct_field_mapper)); +} + +std::unique_ptr<IDocsumFieldWriter> +MatchedElementsFilterDFW::create(const std::string& input_field_name, uint32_t input_field_enum, search::attribute::IAttributeContext& attr_ctx, std::shared_ptr<StructFieldMapper> struct_field_mapper) { diff --git a/searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.h b/searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.h index 6962accc91d..d232ad7ae0c 100644 --- a/searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.h +++ b/searchsummary/src/vespa/searchsummary/docsummary/matched_elements_filter_dfw.h @@ -22,6 +22,8 @@ public: MatchedElementsFilterDFW(const std::string& input_field_name, uint32_t input_field_enum, std::shared_ptr<StructFieldMapper> struct_field_mapper); static std::unique_ptr<IDocsumFieldWriter> create(const std::string& input_field_name, uint32_t input_field_enum, + std::shared_ptr<StructFieldMapper> struct_field_mapper); + static std::unique_ptr<IDocsumFieldWriter> create(const std::string& input_field_name, uint32_t input_field_enum, search::attribute::IAttributeContext& attr_ctx, std::shared_ptr<StructFieldMapper> struct_field_mapper); ~MatchedElementsFilterDFW(); |