TopQueries not returning results
I am attempting to use the TopQueries (https://platform.cloud.coveo.com/docs?api=UsageAnalyticsRead#!/Statistics32API324532Version3215/get_v15_stats_topQueries) API call to find top queries related to a users current search. However I am not seeing any results from this call.
QuerySuggest works just fine with my data set, and I meet all the minimum requirements for data gathered in Analytics to make the TopQueries call yet I still get nothing back.
My Training set is to Daily update with a 1 month data set for the model associated with the pipeline (no filters applied)
To close this subject, we used the QuerySuggest API just like @Etienne suggested, in a small HTML component with an AJAX call. The resulting component resides in the Search Interface, near the footer, and helps the user sees other popular queries related to the current search, A.K.A. "People also search for".
TopQueries has nothing to do with QuerySuggest.
It is just a way to query your whole analytics to view the top queries on your entire organization.
Mostly used to do dashboards.
You are looking for https://platform.cloud.coveo.com/docs?api=SearchApi#!/Search/get_rest_search_v2_querySuggest
Use this instead to get suggestions of query.
Your requirement did quite a nice debate here. The easiest way around would be to re-send the queried term to the querySuggest API, and you'll have some "similar" query terms to display in a component. The best approach would have been to use content recommendation, but it does not suggest query terms, it suggests content directly.