-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ Bug ] Neural Search Leads to "modelId is marked non-null but is null" when Targeting Multiple Indices #759
Comments
Playing around with this further, I've come to the realization that the issue here is that the index.search.default_pipeline assigned to an index does not take effect when targeting indices via alias. To get this to work, one must explicitly pass the search-pipeline via url parameter like so:
|
@martin-gaievski I don't think it as a bug. thoughts? |
if I understood this correctly the |
Thanks for the reply. Currently, an index's configured |
It's not an expected behavior, more like a gap, team didn't check this scenario. Do these steps summarize the issue correctly @imbarazz :
expected result is: hybrid query executed, for neural search sub-query model |
is this being picked up? To me this is a fatal one and the opposite of expected behaviour. Took me an hour to figure out what the problem was.. |
Ran into this very same issue just today - was hoping to get away from needing to pass in ML Model ID in Search query... Then, as a workaround, I was planning to use the Any suggestions? |
I encountered the same bug today. It was unexpected, and it would be beneficial to resolve it or prioritize it. Additionally, highlighting this issue in the documentation for now would be helpful. |
Search pipelines are not supported with |
@imbarazz From OpenSearch 2.18, You can explicitly pass search pipeline in _msearch api.
|
For multiple index you can explicitly define the search pipeline now. Therefore after enabling the support of search pipeline this bug is resolved. |
Note: this error was observed on OpenSearch 2.11 running on AWS cloud.
Performing a neural search against an alias, or performing a multi-search with multiple indices in a single header leads to the following error:
"null_pointer_exception: modelId is marked non-null but is null".
This is problematic when searching across different indices, each with their own embedding model.
Reproduction
Search Pipeline for Embedder Model 1
PUT /_search/pipeline/embed_pipeline_1
Search Pipeline for Embedder Model 2
PUT /_search/pipeline/embed_pipeline_2
Update Index 1 with Pipeline 1
PUT /index1/_settings
Update Index 2 with Pipeline 2
PUT /index2/_settings
Perform Multi-Search
GET /_msearch
The text was updated successfully, but these errors were encountered: