Skip to content

Commit

Permalink
Return ordered results when searching.
Browse files Browse the repository at this point in the history
  • Loading branch information
phronmophobic committed Jan 31, 2024
1 parent 0b47090 commit 54f9715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/phronemophobic/usearch.clj
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
distances* (Memory. (* 4 n))]
(let [found (with-error
(raw/usearch_search index vec (vector-kind vec) n keys* distances*))]
(into {}
(into []
(map (fn [i]
[(.getLong keys* (* 8 i))
(.getFloat distances* (* 4 i))]))
Expand Down

0 comments on commit 54f9715

Please sign in to comment.