aboutsummaryrefslogtreecommitdiffstats
path: root/streamingvisitors/src/vespa/vsm/searcher/utf8exactstringfieldsearcher.h
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-05-15 00:41:35 +0200
committerGitHub <noreply@github.com>2022-05-15 00:41:35 +0200
commit4db8dcbf3395fd92b1348155142b85df5a754289 (patch)
tree912b02e614bc9889ea3543893cbeb699971e8156 /streamingvisitors/src/vespa/vsm/searcher/utf8exactstringfieldsearcher.h
parent287a799b270200aca440cad376272328128a5054 (diff)
Revert "Revert "Collapse vsm into streamingvisitors""
Diffstat (limited to 'streamingvisitors/src/vespa/vsm/searcher/utf8exactstringfieldsearcher.h')
-rw-r--r--streamingvisitors/src/vespa/vsm/searcher/utf8exactstringfieldsearcher.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/streamingvisitors/src/vespa/vsm/searcher/utf8exactstringfieldsearcher.h b/streamingvisitors/src/vespa/vsm/searcher/utf8exactstringfieldsearcher.h
new file mode 100644
index 00000000000..744974a6cf6
--- /dev/null
+++ b/streamingvisitors/src/vespa/vsm/searcher/utf8exactstringfieldsearcher.h
@@ -0,0 +1,25 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+#pragma once
+
+#include <vespa/vsm/searcher/utf8stringfieldsearcherbase.h>
+
+namespace vsm
+{
+
+/**
+ * This class does suffix utf8 searches.
+ **/
+class UTF8ExactStringFieldSearcher : public UTF8StringFieldSearcherBase
+{
+protected:
+ virtual size_t matchTerm(const FieldRef & f, search::streaming::QueryTerm & qt) override;
+ virtual size_t matchTerms(const FieldRef & f, const size_t shortestTerm) override;
+
+public:
+ std::unique_ptr<FieldSearcher> duplicate() const override;
+ UTF8ExactStringFieldSearcher() : UTF8StringFieldSearcherBase() { }
+ UTF8ExactStringFieldSearcher(FieldIdT fId) : UTF8StringFieldSearcherBase(fId) { }
+};
+
+}
+