ClickHouse/src/Functions/multiFuzzyMatchAllIndices.cpp
Robert Schulze c9ce0efa66
Instantiate MultiMatchAnyImpl template using enums
- With this, invalid combinations of the FindAny/FindAnyIndex bools are
  no longer possible and we can remove the corresponding check

- Also makes the instantiations more readable.
2022-06-26 16:25:49 +00:00

26 lines
581 B
C++

#include "FunctionsMultiStringFuzzySearch.h"
#include "FunctionFactory.h"
#include "MultiMatchAllIndicesImpl.h"
namespace DB
{
namespace
{
struct NameMultiFuzzyMatchAllIndices
{
static constexpr auto name = "multiFuzzyMatchAllIndices";
};
using FunctionMultiFuzzyMatchAllIndices = FunctionsMultiStringFuzzySearch<MultiMatchAllIndicesImpl<NameMultiFuzzyMatchAllIndices, /*ResultType*/ UInt64, /*WithEditDistance*/ true>>;
}
void registerFunctionMultiFuzzyMatchAllIndices(FunctionFactory & factory)
{
factory.registerFunction<FunctionMultiFuzzyMatchAllIndices>();
}
}