blob: a7ad02fa9d9f0d5de412fca17e05d843e3bf3f3e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "utf8exactstringfieldsearcher.h"
using search::byte;
using search::streaming::QueryTerm;
using search::streaming::QueryTermList;
namespace vsm {
std::unique_ptr<FieldSearcher>
UTF8ExactStringFieldSearcher::duplicate() const
{
return std::make_unique<UTF8ExactStringFieldSearcher>(*this);
}
size_t
UTF8ExactStringFieldSearcher::matchTerms(const FieldRef & f, const size_t mintsz)
{
(void) mintsz;
for (auto qt : _qtl) {
matchTermExact(f, *qt);
}
return 1;
}
size_t
UTF8ExactStringFieldSearcher::matchTerm(const FieldRef & f, QueryTerm & qt)
{
return matchTermExact(f, qt);
}
}
|