rgrig / javadoc-reader

Automatically exported from code.google.com/p/javadoc-reader
0 stars 0 forks source link

search box should be a suggestion box #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The top results should appear in a suggestion box. 

'Top' is of course subjective. It should ideally be based on a combination of
(1) how popular the class/package is
(2) how close is the match

For (1) we need to keep statistics on the server.
For (2) we need to give a better score to Exception than to BlaException if
the user typed "Exception". Not sure what heuristic to use.

Pressing enter in the suggestion box should go to the web-page of a
class/package if there is a perfect match.

The suggestion box should be updated cca 0.2s after the last keystroke. The
long list should be updated (1) when enter is pressed and (2) cca 1s after
the last keystroke.

Original issue reported on code.google.com by radugrig...@gmail.com on 4 Aug 2009 at 3:27

GoogleCodeExporter commented 8 years ago
On second thought, ENTER should load the best match, not only a perfect match.

Original comment by radugrig...@gmail.com on 4 Aug 2009 at 3:36

GoogleCodeExporter commented 8 years ago

Original comment by radugrig...@gmail.com on 6 Aug 2009 at 11:13

GoogleCodeExporter commented 8 years ago
Summary of
http://groups.google.com/group/javadoc-reader-users/browse_thread/thread/9f8d741
3127c1c66

 * If the needle box has focus and has text, then a suggestion box appears that lists
the [5.. 10] most used classes/packages that match.
 * If the needle box is empty then the left frame lists the recently used
classes/packages.
 * If the needle box is not empty and does not have focus then the left frame lists
all classes/packages that match the query.
 * The ordering of classes/packages is always alphabetical.

recently used = last [50.. 200] clicks on a class/package.
most used = sort the recently used ones by how often they appear in the 
recently used
list

Plan: Keep a recently used list on the server for each user id. Keep the user 
id in a
cookie. Inform the server whenever user views a class/package.

Original comment by radugrig...@gmail.com on 12 Aug 2009 at 10:43

GoogleCodeExporter commented 8 years ago
 * If the user presses enter in the needle box and there is an exact match then open
the corresponding page.

Original comment by radugrig...@gmail.com on 12 Aug 2009 at 10:44