Add category counts for search results

Bug #1998482 reported by LukeWH
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server

Bug Description

Would it be possible to add a list of categories and the number of snaps found for each category to search results?

The use-case is for the upcoming Flutter Ubuntu Software, discussion here [1].

I see this working in 1 of 2 ways:

1. If the "categories" field is included in the request parameters.
2. If a separate parameter is sent, such as "category_counts".

Either way an additional node at the top level of the search results could be added:
  "categories": [
       "name": "education",
       "title": "Education",
       "results": 10

Obviously this is all made up and the implementation details may require some different output.


Bowen Fan (bowenfan)
Changed in snapstore-server:
importance: Undecided → Wishlist
Revision history for this message
Bowen Fan (bowenfan) wrote :

Hi Luke, I've done some investigation on how we can do this in the backend, and created a Jira ticket here for tracking

Adding this feature would basically transfer the frontend client load described in the github ticket to our servers, so some discussion within the team is needed before we can commit it for development.


William Grant (wgrant)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.