I have a structure database, and I want to be able to perform a K-Nearest Neighbor. In other words, I always want the top K results returned, regardless of their similarity. What is the best way to go about doing this?
Currently, I'm thinking of doing a search where I limit the results to K hits, but set the similarity to 0.1 (or something else really low). However, I'm wondering if this is guaranteed to return the top hits, in order?
Perhaps there is a better way to do this?