Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Issue 8526010: Improve Autocomplete Matches and Handling of Large Results Sets (Closed)

Created:
9 years, 1 month ago by mrossetti
Modified:
9 years ago
Reviewers:
GeorgeY, Peter Kasting
CC:
chromium-reviews, brettw-cc_chromium.org, James Su, Paweł Hajdan Jr.
Visibility:
Public.

Description

Improve Autocomplete Matches and Handling of Large Results Sets Do not call FixupUserInput as it was prepending unexpected prefixes (such as file://) to the search string and bypassing valid results. Move the search string decomposition operation from the HQP into the IMUI. In the final substring filtering use whitespace delineated terms rather than words. Instead of bailing if we get a large results set (>500) filter it down to 500 by sorting by typed-count/visit-count/last-visit. This means it's no longer necessary to bypass the HQP if there is only one character in the search term so get rid of the ExpandedInMemoryURLIndexTest.ShortCircuit unit test. BUG=101301, 103575 TEST=Added unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112527

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 23

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -176 lines) Patch
M chrome/browser/autocomplete/history_quick_provider.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.h View 1 2 3 4 5 6 7 5 chunks +39 lines, -16 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.cc View 1 2 3 4 5 6 7 5 chunks +108 lines, -49 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_types.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 3 4 5 6 7 13 chunks +71 lines, -101 lines 4 comments Download

Messages

Total messages: 19 (0 generated)
mrossetti
Note that the filtering performed by HistoryItemFactorGreater (in in_memory_url_index.h) is quite simple-minded at this point. ...
9 years, 1 month ago (2011-11-10 21:45:26 UTC) #1
mrossetti
Adding georgey as reviewer in case Peter is too busy.
9 years, 1 month ago (2011-11-11 16:04:27 UTC) #2
Peter Kasting
http://codereview.chromium.org/8526010/diff/21001/chrome/browser/autocomplete/history_quick_provider.cc File chrome/browser/autocomplete/history_quick_provider.cc (left): http://codereview.chromium.org/8526010/diff/21001/chrome/browser/autocomplete/history_quick_provider.cc#oldcode64 chrome/browser/autocomplete/history_quick_provider.cc:64: if (!FixupUserInput(&autocomplete_input_)) I think removing this may be worse ...
9 years, 1 month ago (2011-11-21 20:31:02 UTC) #3
mrossetti
Issues addressed. Comments on removal of FixupUserInput provided. http://codereview.chromium.org/8526010/diff/21001/chrome/browser/autocomplete/history_quick_provider.cc File chrome/browser/autocomplete/history_quick_provider.cc (left): http://codereview.chromium.org/8526010/diff/21001/chrome/browser/autocomplete/history_quick_provider.cc#oldcode64 chrome/browser/autocomplete/history_quick_provider.cc:64: if ...
9 years, 1 month ago (2011-11-21 21:38:25 UTC) #4
Peter Kasting
http://codereview.chromium.org/8526010/diff/21001/chrome/browser/autocomplete/history_quick_provider.cc File chrome/browser/autocomplete/history_quick_provider.cc (left): http://codereview.chromium.org/8526010/diff/21001/chrome/browser/autocomplete/history_quick_provider.cc#oldcode64 chrome/browser/autocomplete/history_quick_provider.cc:64: if (!FixupUserInput(&autocomplete_input_)) On 2011/11/21 21:38:25, mrossetti wrote: > When ...
9 years, 1 month ago (2011-11-21 22:08:59 UTC) #5
GeorgeY
http://codereview.chromium.org/8526010/diff/24001/chrome/browser/history/in_memory_url_index.cc File chrome/browser/history/in_memory_url_index.cc (right): http://codereview.chromium.org/8526010/diff/24001/chrome/browser/history/in_memory_url_index.cc#newcode454 chrome/browser/history/in_memory_url_index.cc:454: HistoryIDSet history_id_set = HistoryIDSetFromWords(words); I wonder how fast it ...
9 years, 1 month ago (2011-11-21 22:52:03 UTC) #6
mrossetti
On 2011/11/21 22:08:59, Peter Kasting wrote: > http://codereview.chromium.org/8526010/diff/21001/chrome/browser/autocomplete/history_quick_provider.cc > File chrome/browser/autocomplete/history_quick_provider.cc (left): > > http://codereview.chromium.org/8526010/diff/21001/chrome/browser/autocomplete/history_quick_provider.cc#oldcode64 ...
9 years, 1 month ago (2011-11-22 00:07:43 UTC) #7
Peter Kasting
On 2011/11/22 00:07:43, mrossetti wrote: > If it's okay with you, Peter, I'd like to ...
9 years, 1 month ago (2011-11-22 02:14:07 UTC) #8
mrossetti
On 2011/11/22 02:14:07, Peter Kasting wrote: > On 2011/11/22 00:07:43, mrossetti wrote: > > "http://who/peter%20kasting", ...
9 years, 1 month ago (2011-11-22 23:29:02 UTC) #9
mrossetti
http://codereview.chromium.org/8526010/diff/24001/chrome/browser/history/in_memory_url_index.cc File chrome/browser/history/in_memory_url_index.cc (right): http://codereview.chromium.org/8526010/diff/24001/chrome/browser/history/in_memory_url_index.cc#newcode454 chrome/browser/history/in_memory_url_index.cc:454: HistoryIDSet history_id_set = HistoryIDSetFromWords(words); On 2011/11/21 22:52:03, GeorgeY wrote: ...
9 years, 1 month ago (2011-11-22 23:29:12 UTC) #10
Peter Kasting
On 2011/11/22 23:29:02, mrossetti wrote: > On 2011/11/22 02:14:07, Peter Kasting wrote: > > More ...
9 years, 1 month ago (2011-11-23 18:47:34 UTC) #11
mrossetti
The history database stores punycode (which is relevant for when the IMUI is being rebuilt). ...
9 years, 1 month ago (2011-11-23 23:18:21 UTC) #12
Peter Kasting
On 2011/11/23 23:18:21, mrossetti wrote: > Another possibility is to record the > original Unicode ...
9 years, 1 month ago (2011-11-23 23:22:12 UTC) #13
mrossetti
On 2011/11/23 23:22:12, Peter Kasting wrote: > On 2011/11/23 23:18:21, mrossetti wrote: > > Another ...
9 years ago (2011-11-29 21:56:45 UTC) #14
Peter Kasting
On 2011/11/29 21:56:45, mrossetti wrote: > Would it be okay with you if I wrote ...
9 years ago (2011-11-29 21:58:04 UTC) #15
mrossetti
This is ready for a final review then.
9 years ago (2011-11-30 03:08:10 UTC) #16
GeorgeY
http://codereview.chromium.org/8526010/diff/37003/chrome/browser/history/in_memory_url_index_unittest.cc File chrome/browser/history/in_memory_url_index_unittest.cc (right): http://codereview.chromium.org/8526010/diff/37003/chrome/browser/history/in_memory_url_index_unittest.cc#newcode272 chrome/browser/history/in_memory_url_index_unittest.cc:272: url_index_->Init(this, "en,ja,hi,zh"); Please fix indentation http://codereview.chromium.org/8526010/diff/37003/chrome/browser/history/in_memory_url_index_unittest.cc#newcode278 chrome/browser/history/in_memory_url_index_unittest.cc:278: ScoredHistoryMatches matches ...
9 years ago (2011-11-30 22:21:41 UTC) #17
mrossetti
Thanks! I had to look at that three times before I saw the extra spaces! ...
9 years ago (2011-11-30 22:45:24 UTC) #18
Peter Kasting
9 years ago (2011-12-01 19:13:53 UTC) #19
LGTM

Powered by Google App Engine
This is Rietveld 408576698