[BUG] settings.index.knn.algo_param.ef_search
skipped during deserialization
#1414
Labels
bug
Something isn't working
What is the bug?
A clear and concise description of the bug.
The
settings.index.knn.algo_param.ef_search
field does not appear to be deserialized correctly.How can one reproduce the bug?
Steps to reproduce the behavior.
settings.index.knn.algo_param.ef_search
null
What is the expected behavior?
A clear and concise description of what you expected to happen.
The
settings.index.knn.algo_param.ef_search
field should be notnull
and should be set to the expected value of 512 in the example.What is your host/environment?
Operating system, version.
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
N/A
Do you have any additional context?
Add any other context about the problem.
When examining the response from
GET /bug-repro-index
from the OpenSearch Dashboard, it is shaped likeNotice that the response has
settings.index.knn.algo_param.ef_search
as a nested object rather than a flattened field. After debugging and stepping through the code, seems like there are a few contributing issues:knn.algo_param
. However, the map does not containknn.algo_param
- it only containsknn.algo_param.ef_search
andindex.knn.algo_param.ef_search
. Because this field name is not recognized, it gets skipped (see code).settings.index.version
field (see generated code).Minimal Java class used for testing
The text was updated successfully, but these errors were encountered: