Filtering results by score


I am have a script_score function that calculates the euclidean distance between a set of points. This is working well and sorting the result by score ascending gets the job done to get the top match with lowest distance.

Now I need to get all the nearest neighbors based on specified threshold, say I want to exclude all points that score a distance of 0.5 and above. I noticed there is a min_score property but no max_score.

Is there a way to do this with a search query or should I just keep pulling results until I reach the threshold?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.