Search does not show all functions
diricia - October 16, 2008 - 09:17
| Project: | API |
| Version: | 5.x-1.0 |
| Component: | Search |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
When typing in 'db_' the autocomplete does not show db_fetch_array as a function
When typing in 'db_fet' the autocomplete does show the function.
Makes it very difficult to find functions that are for the same functionality if you don't know the names.

#1
The current algorithm is to take the first 20 and show those. Some ranking and such needs to be added.
Something I have been thinking of doing is making all API objects available via JSON. This would load on focus for the search field, and the autocomplete could immediately get results from memory instead of making a HTTP call back for each pause in typing.
#2
It also doesn't show different implementations of the same function, e.g. in different database layers.
If there are more than 20 results for a given search string then the dropdown could have More ... at the bottom linking to the full search results which works nicely, e.g. http://api.drupal.org/api/search/6/db_
#3
Maybe a JS var that users can set to increase the limit.
#4
It is 100 now.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.