diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-07-05 12:06:16 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-07-05 12:06:16 +0200 |
commit | d836aecf76195fa79c3fe2b5fbec73d84fc7ed41 (patch) | |
tree | 6f0eed5746294f675db272b16a2907a1d0e63348 /searchcore | |
parent | f2802027f402d5b16f5fffb9cfc5a3d7f7401ab4 (diff) |
Add IDocsumStoreDocument, an interface for accessing the original document
when generating a document summary.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/docsummary/documentstoreadapter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/docsummary/documentstoreadapter.cpp b/searchcore/src/vespa/searchcore/proton/docsummary/documentstoreadapter.cpp index 1aae840d6c9..ee5be6abdcf 100644 --- a/searchcore/src/vespa/searchcore/proton/docsummary/documentstoreadapter.cpp +++ b/searchcore/src/vespa/searchcore/proton/docsummary/documentstoreadapter.cpp @@ -1,6 +1,7 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "documentstoreadapter.h" +#include <vespa/searchsummary/docsummary/docsum_store_document.h> #include <vespa/searchsummary/docsummary/summaryfieldconverter.h> #include <vespa/document/fieldvalue/stringfieldvalue.h> #include <vespa/eval/eval/value_codec.h> @@ -183,7 +184,7 @@ DocumentStoreAdapter::getMappedDocsum(uint32_t docId) LOG(warning, "Error while getting the docsum blob for docId %u. Returning empty docsum", docId); return DocsumStoreValue(); } - return DocsumStoreValue(buf, buflen, std::move(document)); + return DocsumStoreValue(buf, buflen, std::make_unique<DocsumStoreDocument>(std::move(document))); } } // namespace proton |