Closed Bug 898020 Opened 11 years ago Closed 11 years ago

Implement opensearch suggestions for apps

Categories

(Marketplace Graveyard :: Search, defect, P3)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-09-03

People

(Reporter: mat, Assigned: mat)

References

Details

Create an API to return apps suggestions based on the search API but returning only relevant data in the opensearch format (https://developer.mozilla.org/en-US/docs/Supporting_search_suggestions_in_search_plugins)

This was requested by Gaia team to add app suggestions in a prototype they are bulding, but it could also potentially be used on the Marketplace consumer side as part of bug 847625.
The result would look like this:

["query", ["name of first result", "name for second result"], ["description for first result", "description of second result"], ["url for first result", "url for second result"], ["icon url for first result", "icon url for second result"]]
Assignee: nobody → mpillard
Status: NEW → ASSIGNED
Initial prototype done in https://github.com/mozilla/zamboni/commit/5195fdbd1601016c5b1107f0c5c6696d1bff74d3

Test URL : https://marketplace-dev.allizom.org/api/v1/apps/suggest/?q=puzzle

Keeping this opened for now, and depending on bug 899779 since we might want to make some changes depending on how we want to extend the specification.
Depends on: 899779
Is it odd that "puzzle" returns things like "Mad Tanks"? It does so b/c puzzle is in the description and it's implemented to include descriptions.
We want to improve the query here (maybe including descriptions is not such a bad thing, it's up for debate), there are some tricks we could use to speed it up and make it more relevant. Coincidently:

<robhudson>	mat: actually, 0.90.3 just came out with a very nice one that looks pretty simple: http://www.elasticsearch.org/guide/reference/api/search/completion-suggest/
<robhudson>	We're upgrading out servers to 0.90.3 soon anyway so we could use that

So that's worth investigating.
Fixed a month ago, I don't think we are going to change the output format now. I'll open up a new bug for using elastic search suggest API
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-09-03
You need to log in before you can comment on or make changes to this bug.