From e3c33c9ba2ffad75380a2a1c4d4f00e6a0fff17a Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 5 Feb 2024 21:50:59 -0800 Subject: [PATCH] Set eMatches --- src/hnswutils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hnswutils.c b/src/hnswutils.c index 2b34dff..c2f9433 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -916,7 +916,10 @@ HnswSearchLayer(char *base, Datum q, IndexScanDesc scan, List *ep, int ef, int l f = ((HnswPairingHeapNode *) pairingheap_first(W))->inner; if (index == NULL) + { eDistance = GetCandidateDistance(base, e, q, procinfo, collation); + eMatches = true; + } else HnswLoadElement(eElement, &eDistance, &q, index, procinfo, collation, inserting, scan, &eMatches);