// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include #include namespace proton { class DocumentDB; class SearchHandlerProxy : public ISearchHandler { private: std::shared_ptr _documentDB; vespalib::RetainGuard _retainGuard; public: SearchHandlerProxy(std::shared_ptr documentDB); ~SearchHandlerProxy() override; std::unique_ptr getDocsums(const DocsumRequest & request) override; std::unique_ptr match(const SearchRequest &req, ThreadBundle &threadBundle) const override; }; } // namespace proton