I want to write an opensearch query for getting the trending or the top searches which the users have made.
I am unable to find anything in the docs related to this. Kindly help.
I have read through the docs and can't find something close to this. I guess we can do it by aggregation but that only works on document level not on the whole index level. Also there is no api which provides analytics details about the index to query from