-
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] search detector API doesn't recognize _source field #669
Comments
For returning Anomaly Detector’s in our search response we have additional logic to re-parse our response into an The two ways to add the ability to use I believe adding this capability is not important enough to change the order of our response, so for now I’ll split up the issue into two issues and first release a bug fix for other search API’s (anomaly results, detector tasks) |
@amitgalitz I understand that we take the raw responses & parse into AnomalyDetector objs, but what does this have to do with persisting any order? Also, our API doesn't ensure that they will be returned in any particular order: https://opensearch.org/docs/latest/monitoring-plugins/ad/api/#search-detector |
After further consideration, and your point as well that we don't technically ensure an order in the JSON response, I removed the part where we re-parse the detector and added the ability to use |
@amitgalitz Can you forward port your changes to the main/3.0.0 branch? |
ml-commons is using the similar way to build search APIs and we received one bug opensearch-project/ml-commons#419.
I guess AD has the same issue. Refer to the ml-commons issue for more details of root cause.
Related AD code AbstractSearchAction.java#L85
The text was updated successfully, but these errors were encountered: