blob: dc3bc214b4934a71566738f6ff1c40afeec546e7 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "utf8stringfieldsearcherbase.h"
namespace vsm {
/**
* This class does suffix utf8 searches.
**/
class UTF8SuffixStringFieldSearcher : public UTF8StringFieldSearcherBase
{
protected:
size_t matchTerm(const FieldRef & f, search::streaming::QueryTerm & qt) override;
size_t matchTerms(const FieldRef & f, size_t shortestTerm) override;
public:
std::unique_ptr<FieldSearcher> duplicate() const override;
explicit UTF8SuffixStringFieldSearcher(FieldIdT fId) : UTF8StringFieldSearcherBase(fId) { }
};
}
|