aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/emptysearchview.h
blob: 8dc5f10b717be3f878fdf86cafd6a1fe49c150c8 (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchcore/proton/summaryengine/isearchhandler.h>

namespace proton {

class EmptySearchView : public ISearchHandler
{
public:
    using SP = std::shared_ptr<EmptySearchView>;

    EmptySearchView();

    std::unique_ptr<DocsumReply> getDocsums(const DocsumRequest & req) override;

    std::unique_ptr<SearchReply>
    match(const SearchRequest &req, vespalib::ThreadBundle &threadBundle) const override;
};

} // namespace proton