File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
engine/src/main/java/com/arcadedb/index/vector/distance Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,15 @@ public class DistanceFunctionFactory {
5757 }
5858
5959 public static DistanceFunction getImplementationByName (final String name ) {
60- return implementationsByName .get (name );
60+ return implementationsByName .get (name . toLowerCase () );
6161 }
6262
6363 public static DistanceFunction getImplementationByClassName (final String name ) {
6464 return implementationsByClassName .get (name );
6565 }
6666
6767 public static void registerImplementation (final String name , final DistanceFunction impl ) {
68- implementationsByName .put (name , impl );
68+ implementationsByName .put (name . toLowerCase () , impl );
6969 implementationsByClassName .put (impl .getClass ().getSimpleName (), impl );
7070 }
7171}
You can’t perform that action at this time.
0 commit comments