From acd066463a5fa7865d10526cbaf4fcc22343415d Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 25 Mar 2024 23:15:14 -0700 Subject: [PATCH] Added Jaccard distance to test --- test/t/020_hnsw_bit_build_recall.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/t/020_hnsw_bit_build_recall.pl b/test/t/020_hnsw_bit_build_recall.pl index dc1fba1..44666b6 100644 --- a/test/t/020_hnsw_bit_build_recall.pl +++ b/test/t/020_hnsw_bit_build_recall.pl @@ -68,8 +68,8 @@ for (1 .. 20) } # Check each index type -my @operators = ("<~>"); -my @opclasses = ("bit_hamming_ops"); +my @operators = ("<~>", "<\%>"); +my @opclasses = ("bit_hamming_ops", "bit_jaccard_ops"); for my $i (0 .. $#operators) { @@ -97,7 +97,7 @@ for my $i (0 .. $#operators) )); # Test approximate results - my $min = 0.93; + my $min = $operator eq "<\%>" ? 0.87 : 0.93; test_recall($min, $operator); $node->safe_psql("postgres", "DROP INDEX idx;");