// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "copy_dfw.h" #include "i_docsum_store_document.h" #include #include LOG_SETUP(".searchlib.docsummary.copy_dfw"); namespace search::docsummary { CopyDFW::CopyDFW(const vespalib::string& inputField) : _input_field_name(inputField) { } CopyDFW::~CopyDFW() = default; void CopyDFW::insertField(uint32_t, const IDocsumStoreDocument* doc, GetDocsumsState&, vespalib::slime::Inserter &target) const { if (doc != nullptr) { doc->insert_summary_field(_input_field_name, target); } } }