You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to understand the nearby / knn function.
Is it possible to provide a filter similar to the rbush knn filter function?
knn(tree, x, y, [k, filterFn, maxDistance])
tree: an RBush tree
x, y: query coordinates
k: number of neighbors to search for (Infinity by default)
filterFn: optional filter function; k nearest items where filterFn(item) === true will be returned.
maxDistance (optional): maximum distance between neighbors and the query coordinates (Infinity by default)
Basically I have properties on the objects and I would like the NEARBY to give me the n closest with a given property.
I'm thinking that MATCH is used after the KNN has obtained the result?
Thanks for a great product btw!
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to understand the nearby / knn function.
Is it possible to provide a filter similar to the rbush knn filter function?
Basically I have properties on the objects and I would like the NEARBY to give me the n closest with a given property.
I'm thinking that MATCH is used after the KNN has obtained the result?
Thanks for a great product btw!
The text was updated successfully, but these errors were encountered: