Most popular search results - Site Search

Hi!

I'm trying to fetch the most popular search results from my Swiftype engine, but I can't find any way to do this out of the box.

I am tracking clicks through recording "click throughs" (https://swiftype.com/documentation/site-search/analytics#recording_clickthroughs), however I'd also like to request the documents with the top 5 amount of clicks, as one could do in App Search: https://swiftype.com/documentation/app-search/api/analytics/clicks#top-clicks

Is this possible in Site Search? If not, is there any other way to achieve what I'm trying to create?

Thanks in advance!

Hey @petas, unfortunately, if it's not in the Site Search API documentation, then it's probably not supported. The API for App Search is a bit more sophisticated then the API for Site Search, so it's not uncommon to find APIs available in App Search but not in Site Search.

This is not ideal, but one thought would be to record your own click analytics somewhere. In a data store, increment a counter associated with an ID for every click.

Jason

Hi @JasonStoltz, thanks for your reply!

Aw, that sucks... So anticlimactic to be able to collect clicks but not be able to get them back (more than number of clicks by engine/document type)...

Yes, I was thinking about the same possible solution, but it just felt cumbersome in comparison to simply having it delivered as a part of the Site Search service.

Well well, thanks once more for your response!

Yeah, I hear ya @petas. Thanks for the feedback, it really does help us make these products better when we hear from our users :heart:.

1 Like