just make empty DocsumReply instead of empty blobs
#include "emptysearchview.h"
#include <vespa/searchlib/engine/docsumreply.h>
#include <vespa/searchlib/engine/searchreply.h>
+#include <vespa/vespalib/data/slime/slime.h>
#include <vespa/log/log.h>
LOG_SETUP(".proton.server.emptysearchview");
@@ -12,6 +13,9 @@ using search::engine::DocsumRequest;
using search::engine::SearchReply;
using search::engine::SearchRequest;
+using vespalib::Slime;
+using namespace vespalib::slime;
+
namespace proton {
EmptySearchView::EmptySearchView() = default;
@@ -22,11 +26,7 @@ EmptySearchView::getDocsums(const DocsumRequest &req)
{
LOG(debug, "getDocsums(): resultClass(%s), numHits(%zu)",
req.resultClassName.c_str(), req.hits.size());
- auto reply = std::make_unique<DocsumReply>();
- for (const auto & hit : req.hits) {
- reply->docsums.emplace_back(hit.gid);
- }
- return reply;
+ return std::make_unique<DocsumReply>();
}
SearchReply::UP
