The autocomplete is not smart enough

Bug #1241231 reported by Adnane Belmadiaf
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
webbrowser-app
Fix Released
Medium
Unassigned

Bug Description

The autocomplete is not smart enough, the only thing it does is matching the query with db and displaying ALL the results, typing for ex "google" brings me a list of ~60 entries.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I agree that the functionality could be made much smarter.

Can you please elaborate on what you’d expect to see when typing "google"? Should we filter on recency? On number of visits? On other criteria?

Revision history for this message
Adnane Belmadiaf (daker) wrote :

Suggestion mechanism inputs :
- History
- Bookmarks
- And search suggestions (you typed "tour eiffel" this will perform a search query).

i have tried to see how other browsers are doing it, for each url we need to have a weight this is simple algorithm that we can use :

    days = convert_time_days(url.last_visite) // last_visite_date
    weight = 10
    if (days <= 1) {
        weight = 100;
    } else if (days < 5) { // the last 4 days
        weight = 90;
    } else if (days < 15) { // the last two weeks
        weight = 70;
    } else if (days < 31) { // the last month
        weight = 50;
    } else if (days < 91) { // the last 3 months
        weight = 30;
    }

   if (url.is_bookmarked())
        weight += weight + 15
   if (query_input.match(url.url))
        weight += weight +10
  if (query_input.match(url.title))
        weight += weight + 5
  if (url.is_root())
        weight = 150

also take into consideration that root urls are more privileged, for ex if i type "ubuntu" or "facebook" 99,99% you want to go the
root site rather than any specific page so it should appear first, and 10 results is very good rather than a long useless list.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks for the input, those are very valuable suggestions.

One additional parameter that I think needs to weigh in is the absolute number of visits for a given URL (which roughly translates into how often the site is visited, we’re already storing this information in the history db).

We’ll need to write a mechanism to aggregate different sources for suggestions (at the moment its only source is the history db), such as history, bookmarks, search engine suggestions, …

Changed in webbrowser-app:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Adnane Belmadiaf (daker) wrote :

You are right!

Revision history for this message
Adnane Belmadiaf (daker) wrote :
Revision history for this message
Adnane Belmadiaf (daker) wrote :
Revision history for this message
Bill Filler (bfiller) wrote :

this will be revisted with the new design

Changed in webbrowser-app:
importance: High → Medium
assignee: nobody → Olivier Tilloy (osomon)
Olivier Tilloy (osomon)
Changed in webbrowser-app:
assignee: Olivier Tilloy (osomon) → nobody
Revision history for this message
Olivier Tilloy (osomon) wrote :

Fixed in the developmenent series. The autocomplete list now displays up to 2 suggestions from the history, up to 2 bookmarks, and up to 4 suggestions from the current search engine (which can be configured).

Changed in webbrowser-app:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.