// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "fieldsearcher.h" namespace vsm { class BoolFieldSearcher : public FieldSearcher { public: std::unique_ptr duplicate() const override; explicit BoolFieldSearcher(FieldIdT fId); ~BoolFieldSearcher() override; void prepare(search::streaming::QueryTermList& qtl, const SharedSearcherBuf& buf, const vsm::FieldPathMapT& field_paths, search::fef::IQueryEnvironment& query_env) override; void onValue(const document::FieldValue & fv) override; private: std::vector _terms; }; }