lerouxrgd / ngt-rs

Rust wrappers for NGT approximate nearest neighbor search
Apache License 2.0
36 stars 6 forks source link

Radius parameter for search is not exposed #11

Closed cjrh closed 1 year ago

cjrh commented 1 year ago

Hi @lerouxrgd

I was interested to use the radius parameter for search, but I see that it is only exposed in QGQuery and not for regular search:

image

Was there a specific reason for that, or is it just waiting for someone to make a PR to expose that?

lerouxrgd commented 1 year ago

Hello,

I indeed hard-coded it to mirror Python implementation as you can see here.

However the C API contains a ngt_search_index_with_query that takes a NGTQuery with multiple parameters. So I think the best would be to expose it, I will look into it.

lerouxrgd commented 1 year ago

@cjrh this issue has been pending for some time but I have finally managed to tackle it after updating NGT to version 2.

This has been implemented in version 0.6.0, let me know if that works for you.

cjrh commented 1 year ago

Thank you!