Closed Bug 810437 Opened 12 years ago Closed 12 years ago

Add ability to sort KB (advanced) search results by popularity (helpful votes)

Categories

(support.mozilla.org :: Search, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2012Q4

People

(Reporter: rrosario, Assigned: rrosario)

Details

(Whiteboard: u=contributor c=search p=2 s=2012.22)

Mozilla Hispano uses our search api (&format=json) to search our KB. They have a use case for getting the articles sorted by popularity. This is what we currently do for sorting article listings in the IA (`s.order_by('-document_recent_helpful_votes')`). We should add the option to Advanced Search and handle a `&sortby=helpfulvotes` (or similar) parameter.

See https://github.com/mozillahispano/asitencia-fb/issues/3
I think this is a 2 pter. It involves:

* Adding sortby to the form and UI
* Handling the new sortby parameter in the view
* Tests

Assigning to next sprint for now so we can talk about it during planning.
Whiteboard: u=contributor c=search p=2 s=2012.22
Repository name has changed since it's going to be localized into other languages ;)

The issue can be found now here:

https://github.com/mozillahispano/asksumo-fb/issues/3
Priority: -- → P3
Assignee: nobody → rrosario
Landed and deployed:

https://github.com/mozilla/kitsune/commit/ede4acdfbf7878f7e8a43927812f852c5dcfa2fa


To sort by "popularity" (technically, we are sorting by # of recent helpful votes) add `&sortby_documents=helpful`. For example:

https://support.mozilla.org/es/search?sortby_documents=helpful&w=1&a=1
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.