blob: f611b4e1f4c9778ad8f1a15ea3bd84d41c30d881 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "searchhandlerproxy.h"
#include "documentdb.h"
#include <vespa/searchlib/engine/searchreply.h>
#include <vespa/searchlib/engine/docsumreply.h>
namespace proton {
SearchHandlerProxy::SearchHandlerProxy(const DocumentDB::SP &documentDB)
: _documentDB(documentDB)
{
_documentDB->retain();
}
SearchHandlerProxy::~SearchHandlerProxy()
{
_documentDB->release();
}
std::unique_ptr<search::engine::DocsumReply>
SearchHandlerProxy::getDocsums(const DocsumRequest & request)
{
return _documentDB->getDocsums(request);
}
std::unique_ptr<search::engine::SearchReply>
SearchHandlerProxy::match(const ISearchHandler::SP &searchHandler,
const SearchRequest &req,
vespalib::ThreadBundle &threadBundle) const
{
return _documentDB->match(searchHandler, req, threadBundle);
}
} // namespace proton
|