#include "FunctionFactory.h" #include "FunctionsStringSearch.h" #include "HasTokenImpl.h" #include namespace { struct NameHasToken { static constexpr auto name = "hasToken"; }; struct NameHasTokenOrNull { static constexpr auto name = "hasTokenOrNull"; }; using FunctionHasToken = DB::FunctionsStringSearch>; using FunctionHasTokenOrNull = DB:: FunctionsStringSearch, DB::ExecutionErrorPolicy::Null>; } REGISTER_FUNCTION(HasToken) { factory.registerFunction( {"Performs lookup of needle in haystack using tokenbf_v1 index."}, DB::FunctionFactory::CaseSensitive); factory.registerFunction( {"Performs lookup of needle in haystack using tokenbf_v1 index. Returns null if needle is ill-formed."}, DB::FunctionFactory::CaseSensitive); }