Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Support search_k #3

Open
erikbern opened this issue Mar 7, 2016 · 0 comments
Open

Support search_k #3

erikbern opened this issue Mar 7, 2016 · 0 comments

Comments

@erikbern
Copy link
Collaborator

erikbern commented Mar 7, 2016

Something that was very useful in the C++ version was to let the user manually provide a search_k limit. Cf

https://github.com/spotify/annoy/blob/master/src/annoylib.h#L541
https://github.com/spotify/annoy-java/blob/master/src/main/java/com/spotify/annoy/ANNIndex.java#L147

That way you can ask for the 10 nearest neighbors and tell Annoy to inspect 100k items etc

hitvoice added a commit to hitvoice/annoy-java that referenced this issue Oct 11, 2018
Implements support for search_k. Keeps the original API and make the default value of searchK -1 (same as C++ and python API).
erikbern pushed a commit that referenced this issue Oct 2, 2020
support search_k (issue #3)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant