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

RESOLVED FIXED in 2012Q4

Status

P3
normal
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: rrosario, Assigned: rrosario)

Tracking

unspecified
2012Q4

Firefox Tracking Flags

(Not tracked)

Details

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

(Assignee)

Description

6 years ago
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
(Assignee)

Comment 1

6 years ago
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

Updated

6 years ago
Priority: -- → P3
(Assignee)

Updated

6 years ago
Assignee: nobody → rrosario
(Assignee)

Comment 4

6 years ago
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
(Assignee)

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.