Skip to content

DevDocs does not list the exact match #2575

@mytskine

Description

@mytskine

Steps to reproduce

  • I search for rand within PHP (meaning I type "PHP[tab]rand").
  • DevDocs displays many functions whose name contains "r", "a", "n", and "d", from array_rand toReflectionClass::markLazyObjectAsInitialized.
  • DevDocs does not list rand, which is an official PHP function and the exact match for my search.
  • I could not find a way to display the doc page for rand.

What I would expect

  • The exact match should always be in the results.
  • The search should prefer the functions whose name starts with rand.
  • Or at least, prefer the functions whose name contains "rand" to those where the letters are split.
  • As an alternative, an advanced search syntax would be useful:
    • ^rand
    • "rand" for whole matches

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions