Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions diskann/src/graph/search/range_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ where
)
.await?;

// The second round of range search does not ensure items are added to
// `in_range` in sorted order. This restores that order.
scratch.in_range.sort_unstable();

InternalSearchStats {
cmps: initial_stats.cmps,
hops: initial_stats.hops + range_stats.hops,
Expand Down
Loading
Loading