blob: 1c463c28847a9f389f033762e16f7cf121b5ad83 (
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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vsm/searcher/utf8strchrfieldsearcher.h>
namespace vsm {
/**
* This class does substring utf8 searches.
**/
class UTF8SubStringFieldSearcher : public UTF8StringFieldSearcherBase
{
public:
std::unique_ptr<FieldSearcher> duplicate() const override;
UTF8SubStringFieldSearcher() : UTF8StringFieldSearcherBase() { }
UTF8SubStringFieldSearcher(FieldIdT fId) : UTF8StringFieldSearcherBase(fId) { }
protected:
size_t matchTerm(const FieldRef & f, search::streaming::QueryTerm & qt) override;
size_t matchTerms(const FieldRef & f, const size_t shortestTerm) override;
};
}
|