diff --git a/src/hnsw/options.c b/src/hnsw/options.c index a2b234a8f..fd6de0dea 100644 --- a/src/hnsw/options.c +++ b/src/hnsw/options.c @@ -225,8 +225,8 @@ void _PG_init(void) "Expansion factor to use during vector search in a scan", "Valid values are in range [1, 400]", &ldb_hnsw_ef_search, - //HNSW_DEFAULT_EF, - 0, // sentinel value + // HNSW_DEFAULT_EF, + 0, // sentinel value 1, HNSW_MAX_EF, PGC_USERSET, diff --git a/src/hnsw/scan.c b/src/hnsw/scan.c index cd3e728ed..4b2c804d3 100644 --- a/src/hnsw/scan.c +++ b/src/hnsw/scan.c @@ -159,7 +159,8 @@ bool ldb_amgettuple(IndexScanDesc scan, ScanDirection dir) // about the furtheest neighbors Assert(ScanDirectionIsForward(dir)); - int ef = ldb_hnsw_ef_search; // 0 if not set, but we pass it into usearch_custom_ef anyway since 0 is also a sentinel value there + int ef = ldb_hnsw_ef_search; // 0 if not set, but we pass it into usearch_custom_ef anyway since 0 is also a + // sentinel value there if(scanstate->first) { int num_returned; Datum value;