Closed Bug 395446 Opened 17 years ago Closed 17 years ago

if the user chooses a result from autocomplete results, or types it manually, have that weigh heavily in ranking ac results

Categories

(Firefox :: Address Bar, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3 alpha8

People

(Reporter: moco, Assigned: moco)

Details

Attachments

(1 file, 1 obsolete file)

if the user chooses a result from autocomplete, have that weigh heavily in ranking ac results.

not we have a bug on typed weighing more already, which would be easiy to fix and good to do for m8.

<mconnor> btw, you mentioned poor man's quicksilver
<mconnor> I have an idea there
<mconnor> when we get around to frecency ratings calculated at load time, we should make stuff picked out of the autocomplete jump the rating a lot
<mconnor> so if I keep picking foo.com out of the autocomplete results, I should get that high in the list for anything matching
<mconnor> which is kinda/sorta how quicksilver learns
<mconnor> though it remembers "fo" == "foo.com" rather than just making foo.com rate higher for anything matching
<sspitzerMsgMe> there is a bug about using "typed" as the high order bit, and i need to see if we set visits at typed when we click on them ac results.
<sspitzerMsgMe> say we do (or we don't), we could have that as a transition type
<sspitzerMsgMe> and make those weigh more
<sspitzerMsgMe> typed or chosen
I'd like to slip this into m8, if possible.
Flags: blocking-firefox3?
Target Milestone: --- → Firefox 3 M8
for the typed transition affecting ac results, see bug #394066
Assignee: nobody → sspitzer
I lucked out, selecting items from the url bar ac list is already TRANSITION_TYPED!

so, if I fix bug #394066, we get this fix too.  working on bug #394066 now.
Status: NEW → ASSIGNED
Depends on: 394066
but note, within a chunk of time, if two searches are both typed in, we defer to visit count (and then max visit date).
Attachment #280150 - Flags: review?(dietrich)
Summary: if the user chooses a result from autocomplete, have that weigh heavily in ranking ac results → if the user chooses a result from autocomplete results, or types it manually, have that weigh heavily in ranking ac results
No longer depends on: 394066
Attachment #280151 - Flags: review? → review?(dietrich)
Comment on attachment 280151 [details] [diff] [review]
prefer typed, then bookmarked, then a clicked link, with ties broken by visit count (then visit date)

technically, the change looks fine, r=me.

however, i'm a little worried about putting the bookmark part in a release without nightly tester feedback on it's efficacy. this fix is ordering, not really "weighting" (ie: different types are grouped, not interspersed based on external criteria). this is a concern in the case of bookmarks: in my personal use i use location bar autocomplete to find places i've been to *recently*, not to find items i've saved. after this change, an untyped history entry that i've been to this morning will be below all bookmarks that match my search. as users start bookmarking more (due to starring, tagging etc), bookmarks may overwhelm the results.

OTOH, putting this in a release will provide a much larger sounding board, so we'd likely get richer feedback than from the nightly tester group.
Attachment #280151 - Flags: review?(dietrich) → review+
dietrich, you bring up a good point about bookmarks, and locally, I'm seeing what you are worried about.

let me attach a patch that just does typed and I'll save the bookmark weighting (and not ordering) to bug #394066
Attachment #280150 - Attachment is obsolete: false
Attachment #280150 - Flags: review?(dietrich)
Attachment #280150 - Flags: approval1.9?
Attachment #280151 - Attachment is obsolete: true
Attachment #280151 - Flags: review+
Attachment #280150 - Flags: review?(dietrich) → review+
See also bug 370117: it has a patch that makes us keep a record of how many times a form history autocomplete entries are used, so that we can sort them by frequency of use in the dropdown. That patch implements a formhistory-specific API, but we could instead modify nsIAutocompleteResult to enable the autocompletecontroller to notify the nsIAutocompleteSearch implementations of a selected result, and have it record that data and take it into account when it performs searches.
><mconnor> which is kinda/sorta how quicksilver learns
><mconnor> though it remembers "fo" == "foo.com" rather than just making foo.com
>rate higher for anything matching

I think we should seriously consider this type of adaptive learning.  Another difference is that the first match in Quicksilver is set as the default action on enter (like Safari).

>after this change, an untyped history entry that i've
>been to this morning will be below all bookmarks that match my search. as users
>start bookmarking more (due to starring, tagging etc), bookmarks may overwhelm
>the results.

Or, this will cause users to be careful what they bookmark, which works against everything we've tried to do to make bookmarking easy.

I think we should always display bookmarked results, but they shouldn't be given precedence in the ranking.
Attachment #280150 - Flags: approval1.9? → approval1.9+
fixed.

Checking in nsNavHistoryAutoComplete.cpp;
/cvsroot/mozilla/toolkit/components/places/src/nsNavHistoryAutoComplete.cpp,v  <
--  nsNavHistoryAutoComplete.cpp
new revision: 1.22; previous revision: 1.21
done

note, I am not giving any extra preference to bookmarked items.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
I think we should consider the full quicksilver style approach as one of our 5 delight items.
(In reply to comment #11)
> I think we should consider the full quicksilver style approach as one of our 5
> delight items.
> 

alex, that'd be *very* cool. as this bug is closed, can you file a new bug, clearly spec'ing out the behavior?
> can you file a new bug,

alex logged bug #395735
> alex logged bug #395735

oops, sorry, that is something else.  I'll log the bug.
> I'll log the bug.

see bug #395739
Flags: blocking-firefox3? → blocking-firefox3+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: