Closed
Bug 378657
Opened 17 years ago
Closed 16 years ago
exact name hits should sort first
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
3.4.6
People
(Reporter: shaver, Assigned: wenzel)
References
()
Details
Attachments
(1 file, 1 obsolete file)
3.10 KB,
patch
|
laura
:
review+
|
Details | Diff | Splinter Review |
Right now we sort all name hits equally, which gives undesirable ordering on searches like the one in the URL field above, for "forecastfox". Exact matches on the title should probably get the #1 spot, not sure how best to do that (sql or app logic).
Updated•17 years ago
|
Target Milestone: --- → 3.2
Updated•17 years ago
|
Assignee: nobody → laura
Updated•17 years ago
|
Target Milestone: 3.2 → 3.4
Updated•16 years ago
|
Target Milestone: 3.4 → 3.4.3
Comment 1•16 years ago
|
||
We can do this without the FTS implementation referenced in bug 400986. We can run another query that uses = instead of LIKE on the title. (Posting this comment over there as well.)
Comment 2•16 years ago
|
||
Do these semantics work when advanced search lets you choose the search order? Maybe we need a UI change?
Attachment #323404 -
Flags: review?(cpollett)
Updated•16 years ago
|
Attachment #323404 -
Flags: review?(fwenzel)
Assignee | ||
Comment 3•16 years ago
|
||
Comment on attachment 323404 [details] [diff] [review] Exact name hit should come first regardless of other search orders No, I don't see why we need a UI change. It's not surprising to have an exact name match show up at the top. Btw. if I were you I'd "break;" when you find a match, so that on average you only need to touch n/2 results and not all n results. This is not the most well-performing thing either, but it will go away anyway once we use a different type of search, right?
Attachment #323404 -
Flags: review?(fwenzel) → review+
Comment 4•16 years ago
|
||
Added break; committed in r14469. (I could have sworn I did that, thanks for the heads up.) Yeah, it's not great performance although better than another series of monster left joins which is why I did it here and not in the DB. As you say, it should be obsoleted by full text search.
Comment 5•16 years ago
|
||
Comment on attachment 323404 [details] [diff] [review] Exact name hit should come first regardless of other search orders wenzel's so fast, but here's my r+
Attachment #323404 -
Flags: review?(cpollett) → review+
Comment 6•16 years ago
|
||
Verified FIXED using https://preview.addons.mozilla.org/en-US/firefox/search?q=forecastfox&cat=all. Additionally, a search for "Diggler" (a sandboxed add-on) on preview [https://preview.addons.mozilla.org/en-US/firefox/search?q=diggler&cat=all&as=true&appid=1&lver=0.3&hver=3.0&atype=1&pid=1&lup=&pp=20&sort=name] yields the exact name hit "Diggler" first; that same search on production [https://addons.mozilla.org/en-US/firefox/search?q=diggler&cat=all] yields it fourth.
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Keywords: push-needed
Comment 7•16 years ago
|
||
This doesn't look right tom me: https://preview.addons.mozilla.org/en-US/firefox/search?q=ie+tab&cat=all compare: https://preview.addons.mozilla.org/en-US/firefox/search?q=internet+explorer+tab&cat=all
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment 9•16 years ago
|
||
actually the search in comment #6 has the exact match half way down the page as well so perhaps this has regressed?
Updated•16 years ago
|
Target Milestone: 3.4.3 → 3.4.6
Comment 11•16 years ago
|
||
I confirm this bug: a search for "Open link in..." (with or without quotes) under "all add-ons" only returns the extension whose name is "Open link in..." as the 35th result. (The results list is not alphabetical.)
Comment 12•16 years ago
|
||
This will be solved by bug 439227 and associated work.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → DUPLICATE
Updated•16 years ago
|
Assignee | ||
Comment 13•16 years ago
|
||
To sort name hits first, even if the relevance ranking would put them on the second page, we need to do it in SQL. This patch backs out attachment 323404 [details] [diff] [review] and adds an "order by" clause to do the trick.
Assignee: laura → fwenzel
Attachment #323404 -
Attachment is obsolete: true
Status: REOPENED → ASSIGNED
Attachment #329894 -
Flags: review?(laura)
Updated•16 years ago
|
Attachment #329894 -
Flags: review?(laura) → review+
Assignee | ||
Comment 14•16 years ago
|
||
Thanks: r17135.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago → 16 years ago
Keywords: push-needed
Resolution: --- → FIXED
* https://preview.addons.mozilla.org/en-US/firefox/search?q=open+link+in&cat=all -- first hit is "Open Link In" * https://preview.addons.mozilla.org/en-US/firefox/search?q=ie+tab&cat=all -- first hit is "IE Tab" * https://preview.addons.mozilla.org/en-US/firefox/search?q=internet+explorer+tab&cat=all -- first hit is also "IE Tab" * https://preview.addons.mozilla.org/en-US/firefox/search?q=close+all+tabs&cat=all -- first hit is "Close All Tabs" (oddly enough, on production, that add-on can't be found with that phrase, yet a search for just "Close All" finds it, albeit down the page a ways I did find a regression, though, I think, and that is that substring searches such as "tab preview" on preview will now yield the "Tab Preview" add-on 2nd to "Ctrl Tab Preview", where that specific use-case lists "Tab Preview" 1st on production and "Ctrl Tab Preview" 2nd. Probably need a spin-off bug for that?
Assignee | ||
Comment 16•16 years ago
|
||
(In reply to comment #15) > I did find a regression, though, I think, and that is that substring searches > such as "tab preview" on preview will now yield the "Tab Preview" add-on 2nd to > "Ctrl Tab Preview", where that specific use-case lists "Tab Preview" 1st on > production and "Ctrl Tab Preview" 2nd. Probably need a spin-off bug for that? Well, we do need to get our requirements straight. (Same with "Diggler" that you mentioned on IRC): The first criteria is public vs. sandbox (which puts diggler behind *all* matching public add-ons). The second criteria is a name match like "*diggler*" (meaning, all add-ons whose names that match this are returned before all that don't). The third one now is the relevance count assigned by MySQL's fulltext search. As both "Tab Preview" and "Ctrl Tab Preview" are public and match "*tab preview*", their order is distinguished by MySQL's relevance measure, and apparently, MySQL found the latter more appropriate for your search term than the former. If we want to change this, I could use a more stricter name match, like "^tab preview.*" (meaning, strings starting with this exact term only), but we need to be aware that this rule won't automatically put "MyFacebookAddon" (I made that up) to the top anymore when you search for "facebook". Last alternative is, adding an additional sort rule: 1) public vs. sandbox 2) strict, exact name match 3) fuzzy name match 4) all others MySQL finds relevant I am fine with either option (maybe the last one is the best though), I just don't want to have to change it twice a week....
Assignee | ||
Comment 17•16 years ago
|
||
Now that I wrote all this, the order 2) 1) 3) 4) seems to make even more sense: It'll show the experimental "diggler" on the top if you search for its name specifically. Followed by all public add-ons whose names match fuzzily, then the public ones with no name match, then experimental with fuzzy name match, and at last experimental ones with no name match. How does that sound?
I've filed bug 446122 and bug 446467, and we've also got bug 291413 for the top-rated facet of search results' ordering; not sure if I should verify this one or not (i.e. are those spinoffs enough?) Not sure what to do with Fred's suggestion(s) in comment 16 / comment 17.
Verified FIXED, before this bug gets too unwieldy; let's just file (more) spinoff bugs.
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•16 years ago
|
Keywords: push-needed
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•