-
Notifications
You must be signed in to change notification settings - Fork 73
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] bug with GET /your_index/_search and POST _reindex in OS 2.11 #626
Comments
@vibrantvarun can you take a look into this issue. Seems like some issue with NeuralQueryEnricher processor |
@vamshin @vibrantvarun Any updates on this? |
I tested it out. There's no null check below in 2.11 neural-search/src/main/java/org/opensearch/neuralsearch/processor/NeuralQueryEnricherProcessor.java Line 71 in 7368edc
causing the NPE. It was handled in #615. Should resolved the issue. @martin-gaievski @vibrantvarun can you verify and we can close this one out? |
Good catch, that PR should fix the issue. I'll run the test and update here whether or not we're good to close the issue. |
@martin-gaievski did you get a chance to verify this? |
I think info about ingest pipeline is missing in provided steps. Document ingestion will not work without that pipeline because it's needed to create embeddings. My understanding is that we need to add following details to provided steps: create ingest pipeline step:
then put it as default pipeline for both indexes, e.g. This is needed because
similarly it should ingest pipeline in the reindex request:
If I do all this, then reindex operation works for me. Tested on latest 2.x (2.18) @LandryK, please review my assessment and correct me if I'm wrong. Based on @owaiskazi19's finding, I believe this issue stems from either an incomplete configuration or a fixed scenario. |
Seems the issue is fixed on the latest version. Please reopen it if the issue still exist. |
What is the bug?
When you configure an index with a search pipeline as below the
GET /your_index/_search
yields a 500 error - Null Pointer Exception.It seems like by default the
_reindex
API uses theGET /your_index/_search
as such if you attempt to perform re-index with a source_index that has aindex.search.default_pipeline
configured you will get a Null Pointer Exception.2- Create index with pipeline and setup default search pipeline
3- add documents
4- search (This will yield a NPE-500 error)
GET /source-index/_search
This will give NPE due to
"index.search.default_pipeline" : "test-pipeline"
. If you remove this setting in the index setting, the query works just fine.5- Proceed to Create a destination index
6- Attempt to perform re-indexing (This will give you a NPE - 500 error)
The above will not work because
GET /source-index/_search
gives a NPE error due to the"index.search.default_pipeline" : "test-pipeline"
as discussed in Step 4.However if you remove the "index.search.default_pipeline" : "test-pipeline" the index settings, the query works.
7- if you try re-index with below it works
Bugs:
1- Seems like by default the
_reindex
API is usingGET /source-index/_search
instead ofGET /your_index/_search{"query":{"match_all":{}}}
and since the former throws a Null Pointer Error, the_reindex
also throws the same as it is unable to get the list of documents in source index.2-
GET /source-index/_search
does not work if the"index.search.default_pipeline" : "test-pipeline"
is present in index settingOpenSearch Version
OS 2.11
The text was updated successfully, but these errors were encountered: