blob: 5ff4b14ffd1d63318247cddf247d162780183e7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2019 Yahoo Holdings. 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<FieldSearcher> duplicate() const override;
BoolFieldSearcher(FieldIdT fId);
~BoolFieldSearcher();
void prepare(search::streaming::QueryTermList & qtl, const SharedSearcherBuf & buf) override;
void onValue(const document::FieldValue & fv) override;
private:
std::vector<bool> _terms;
};
}
|