summaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/matching/fakesearchcontext.cpp
blob: c7a75bff9ca9487bb2bc995ef232e691b5b7a427 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "fakesearchcontext.h"

namespace proton::matching {

FakeSearchContext::FakeSearchContext(size_t initialNumDocs)
    : _clock(),
      _doom(_clock, fastos::SteadyTimeStamp::ZERO),
      _selector(new search::FixedSourceSelector(0, "fs", initialNumDocs)),
      _indexes(new IndexCollection(_selector)),
      _attrSearchable(),
      _docIdLimit(initialNumDocs)
{
    _attrSearchable.is_attr(true);
}

FakeSearchContext::~FakeSearchContext() = default;

}