You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the bug?
I am using the model search API to get all trained model. But the API still response all fields even I pass _source field in the query body. The query like:
POST /_plugins/_ml/models/_search
{
"_source": ["name"],
"query":{
"match_all":{
}
}
}
How can one reproduce the bug?
Just use query like
POST /_plugins/_ml/models/_search
{
"_source": ["name"],
"query":{
"match_all":{
}
}
}
What is the expected behavior?
Should only response name field in the response _source.
What is your host/environment?
OS: [e.g. iOS]
Version [e.g. 22]
Plugins
Do you have any screenshots?
The model_content field is also returned.
Do you have any additional context?
Nope.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this bug. This is caused by source context rewrite in AbstractMLSearchAction.java. We should keep original fetch source in method getSourceContext
What is the bug?
I am using the model search API to get all trained model. But the API still response all fields even I pass _source field in the query body. The query like:
How can one reproduce the bug?
Just use query like
What is the expected behavior?
Should only response name field in the response _source.
What is your host/environment?
Do you have any screenshots?
The model_content field is also returned.
Do you have any additional context?
Nope.
The text was updated successfully, but these errors were encountered: