2020-05-06 23:21:13 +00:00
|
|
|
#include "FunctionsMultiStringFuzzySearch.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "MultiMatchAnyImpl.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-05-06 23:21:13 +00:00
|
|
|
|
|
|
|
struct NameMultiFuzzyMatchAnyIndex
|
|
|
|
{
|
|
|
|
static constexpr auto name = "multiFuzzyMatchAnyIndex";
|
|
|
|
};
|
|
|
|
|
2022-06-25 15:28:15 +00:00
|
|
|
using FunctionMultiFuzzyMatchAnyIndex = FunctionsMultiStringFuzzySearch<MultiMatchAnyImpl<NameMultiFuzzyMatchAnyIndex, /*ResultType*/ UInt64, MultiMatchTraits::Find::AnyIndex, /*WithEditDistance*/ true>>;
|
2020-05-06 23:21:13 +00:00
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2020-05-06 23:21:13 +00:00
|
|
|
void registerFunctionMultiFuzzyMatchAnyIndex(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionMultiFuzzyMatchAnyIndex>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|