Closed Bug 1148559 Opened 9 years ago Closed 4 years ago

Search "Function *" should Show JS Generator page.

Categories

(developer.mozilla.org Graveyard :: Search, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: havvy, Unassigned)

References

Details

(Whiteboard: [type:feature])

What problems would this solve?
===============================
It would make it easier to find the MDN documentation on generators.

Who would use this?
===================
JS developers who know the syntax but do not necessarily remember or know the name "Generator". This includes users in ##javascript on Freenode who do `!mdn function *`.

What would users see?
=====================
See next section.

What would users do? What would happen as a result?
===================================================
User would search MDN for something containing the RegExp /function ?\*/i.

Search results would move Generator (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator) to the top of the search results.

Is there anything else we should know?
======================================
This is a special case in the search logic.
Whiteboard: [specification][type:feature] → [type:feature]
This is actually a broader problem -- searches on terms that are in code on the page are not working well. Searching on "function*" finds this page, but only ranks it 7th.
Severity: normal → enhancement
Component: General → Search
Depends on: 1162505
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.