mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
c9ce0efa66
- 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.
26 lines
589 B
C++
26 lines
589 B
C++
#include "FunctionsMultiStringFuzzySearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "MultiMatchAnyImpl.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameMultiFuzzyMatchAnyIndex
|
|
{
|
|
static constexpr auto name = "multiFuzzyMatchAnyIndex";
|
|
};
|
|
|
|
using FunctionMultiFuzzyMatchAnyIndex = FunctionsMultiStringFuzzySearch<MultiMatchAnyImpl<NameMultiFuzzyMatchAnyIndex, /*ResultType*/ UInt64, MultiMatchTraits::Find::AnyIndex, /*WithEditDistance*/ true>>;
|
|
|
|
}
|
|
|
|
void registerFunctionMultiFuzzyMatchAnyIndex(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionMultiFuzzyMatchAnyIndex>();
|
|
}
|
|
|
|
}
|