Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch 2
Describe the issue:
The “collapse” feature is undocumented in OpenSearch 2. I see that it works with a basic test, but given that it is missing from the documentation (compared to Elasticsearch 7 Collapse search results | Elasticsearch Guide [7.17] | Elastic) and is missing from the opensearch-go client library as well as a couple other ones that I looked at, I’m reluctant to use it for fear of using an unsupported feature and running into undefined behavior or issues that won’t be resolved.
Can you please comment on the state of this feature - is it officially supported? Is the missing documentation and inclusion in the client libraries just an oversight? Is it being softly deprecated?
What would you recommend using as a result? I did some exploration and found that I can achieve something similar using the top_hits aggregation (Metric aggregations - OpenSearch documentation) but the shape of the response is significantly different so it’s not a direct replacement.
Any other suggestions?
Thanks!