2020-05-06 23:21:13 +00:00
|
|
|
#include "FunctionsMultiStringFuzzySearch.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "MultiMatchAllIndicesImpl.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-05-06 23:21:13 +00:00
|
|
|
|
|
|
|
struct NameMultiFuzzyMatchAllIndices
|
|
|
|
{
|
|
|
|
static constexpr auto name = "multiFuzzyMatchAllIndices";
|
|
|
|
};
|
|
|
|
|
2022-06-25 15:28:15 +00:00
|
|
|
using FunctionMultiFuzzyMatchAllIndices = FunctionsMultiStringFuzzySearch<MultiMatchAllIndicesImpl<NameMultiFuzzyMatchAllIndices, /*ResultType*/ UInt64, /*WithEditDistance*/ true>>;
|
2020-05-06 23:21:13 +00:00
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(MultiFuzzyMatchAllIndices)
|
2020-05-06 23:21:13 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionMultiFuzzyMatchAllIndices>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|