aboutsummaryrefslogtreecommitdiffstats
path: root/streamingvisitors/src/vespa/vsm/searcher/utf8strchrfieldsearcher.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2024-03-27 12:29:36 +0100
committerTor Egge <Tor.Egge@online.no>2024-03-27 12:29:36 +0100
commit796b4c88c5b990b9446e3166394d8248080bcb05 (patch)
treedcc0bfcdecaea82af2f50e2fb29177341cf4daf3 /streamingvisitors/src/vespa/vsm/searcher/utf8strchrfieldsearcher.cpp
parent98f6fe0150b96f38cf09fa19eb892f2ba51555a2 (diff)
Move UTF8StringFieldSearcherBase tokenize member function to TokenizeReader.
Move anonymous normalize_mode funtion to a public static FieldSearchSpecMap::convert_normalize_mode member function.
Diffstat (limited to 'streamingvisitors/src/vespa/vsm/searcher/utf8strchrfieldsearcher.cpp')
-rw-r--r--streamingvisitors/src/vespa/vsm/searcher/utf8strchrfieldsearcher.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/streamingvisitors/src/vespa/vsm/searcher/utf8strchrfieldsearcher.cpp b/streamingvisitors/src/vespa/vsm/searcher/utf8strchrfieldsearcher.cpp
index 37dc4ffb99c..c860178d583 100644
--- a/streamingvisitors/src/vespa/vsm/searcher/utf8strchrfieldsearcher.cpp
+++ b/streamingvisitors/src/vespa/vsm/searcher/utf8strchrfieldsearcher.cpp
@@ -26,8 +26,7 @@ UTF8StrChrFieldSearcher::matchTerms(const FieldRef & f, size_t mintsz)
TokenizeReader reader(reinterpret_cast<const byte *> (f.data()), f.size(), fn);
while ( reader.hasNext() ) {
- tokenize(reader);
- size_t fl = reader.complete();
+ size_t fl = reader.tokenize(normalize_mode());
for (auto qt : _qtl) {
const cmptype_t * term;
termsize_t tsz = qt->term(term);