// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "empty_search_context.h" #include namespace search::attribute { EmptySearchContext::EmptySearchContext(const AttributeVector& attr) noexcept : SearchContext(attr) { } EmptySearchContext::~EmptySearchContext() = default; int32_t EmptySearchContext::onFind(DocId, int32_t, int32_t&) const { return -1; } int32_t EmptySearchContext::onFind(DocId, int32_t) const { return -1; } HitEstimate EmptySearchContext::calc_hit_estimate() const { return HitEstimate(0); } uint32_t EmptySearchContext::get_committed_docid_limit() const noexcept { return 0u; } std::unique_ptr EmptySearchContext::createIterator(fef::TermFieldMatchData*, bool) { return std::make_unique(); } std::unique_ptr EmptySearchContext::createFilterIterator(fef::TermFieldMatchData*, bool) { return std::make_unique(); } }