Describe the bug
I'm trying to use Indexes.search in Python. The documentation has no examples so I'm kind of guessing on how it should be used, but it seems to just not work, and raises a C++ error and dumps core.
Steps to reproduce
from usearch.index import Index, Indexes
import numpy as np
ia = Index()
ia.load("foo.usearch")
ib = Index()
ib.load("bar.usearch")
# just take the first vector as a dummy value
query = np.array([ia[0]])
ix = Indexes([ia, ib])
ix.search(query)
Gives this error:
terminate called after throwing an instance of 'std::bad_function_call'
what(): bad_function_call
Aborted (core dumped)
Expected behavior
The Indexes.search function returns a value. (The docs don't say what, so I'm not sure what to expect here either.)
USearch version
v2.12.0
Operating System
Ubuntu 24.04
Hardware architecture
x86
Which interface are you using?
Python bindings
Contact Details
No response
Are you open to being tagged as a contributor?
Is there an existing issue for this?
Code of Conduct
Describe the bug
I'm trying to use
Indexes.searchin Python. The documentation has no examples so I'm kind of guessing on how it should be used, but it seems to just not work, and raises a C++ error and dumps core.Steps to reproduce
Gives this error:
Expected behavior
The
Indexes.searchfunction returns a value. (The docs don't say what, so I'm not sure what to expect here either.)USearch version
v2.12.0
Operating System
Ubuntu 24.04
Hardware architecture
x86
Which interface are you using?
Python bindings
Contact Details
No response
Are you open to being tagged as a contributor?
.githistory as a contributorIs there an existing issue for this?
Code of Conduct