mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-04 03:30:56 +08:00
Use fabs [skip ci]
This commit is contained in:
@@ -135,7 +135,7 @@ GetScanItems(IndexScanDesc scan, Datum value)
|
||||
IvfflatScanList *scanlist = (IvfflatScanList *) pairingheap_remove_first(so->listQueue);
|
||||
|
||||
/* Query-aware dynamic pruning */
|
||||
if (scanlist->distance > 2 * so->minDistance)
|
||||
if (fabs(scanlist->distance) > 1.5 * fabs(so->minDistance))
|
||||
continue;
|
||||
|
||||
searchPage = scanlist->startPage;
|
||||
|
||||
Reference in New Issue
Block a user