Closed
Bug 485300
Opened 16 years ago
Closed 16 years ago
[newsearch] "Did you mean?" suggests the same search terms
Categories
(support.mozilla.org :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
1.3
People
(Reporter: stephend, Assigned: paulc)
References
()
Details
(Whiteboard: sumo_only)
Attachments
(1 file, 2 obsolete files)
|
1.10 KB,
patch
|
laura
:
review+
|
Details | Diff | Splinter Review |
Steps to Reproduce:
1. Load http://support-stage.mozilla.org/tiki-newsearch.php?locale=ja&q=%E8%B3%AA%E5%95%8F&where=d&l=ja&filter_lang=1&author=&filter_author=0&en_too=1&type=0&answered=0&lastmodif=0
2. Click on the "Did you mean '質問'?" link: (http://support-stage.mozilla.org/tiki-newsearch.php?locale=ja&q=%E8%B3%AA%E5%95%8F&where=d&l=ja&filter_lang=1&author=&filter_author=0&en_too=1&type=0&answered=0&lastmodif=0)
Expected Results:
After clicking that link once, the correct characters/phrase should be found and the user should be redirected to that term's page
Actual Results:
It keeps suggesting the same string
| Assignee | ||
Comment 1•16 years ago
|
||
I'll take a look tomorrow morn ;)
Assignee: nobody → paul.craciunoiu
Target Milestone: --- → 1.0
| Assignee | ||
Updated•16 years ago
|
Target Milestone: 1.0 → 1.1
| Assignee | ||
Updated•16 years ago
|
Target Milestone: 1.1 → 1.0.2
| Assignee | ||
Comment 3•16 years ago
|
||
I don't get this specific URL locally (maybe it's the reindexing?)
http://support-stage.mozilla.org/tiki-newsearch.php?locale=ja&q=%E8%B3%AA%E5%95%8F&where=d&l=ja&filter_lang=1&author=&filter_author=0&en_too=1&type=0&answered=0&lastmodif=0
In other words, there's no "Did you mean?" for me.
I'd need a new case to reproduce this. I'm playing around locally but I don't get any yet.
Comment 4•16 years ago
|
||
FWIW, I don't experience this locally, either. I suggest we wait until bug 488374 is resolved since that's the big piece missing between the local and staging instances.
| Assignee | ||
Comment 5•16 years ago
|
||
Agree with you, Eric.
| Reporter | ||
Updated•16 years ago
|
| Reporter | ||
Comment 6•16 years ago
|
||
https://support-stage.mozilla.org/tiki-newsearch.php?locale=en&q=VG+safe&where=d&l=en&filter_lang=1&author=&filter_author=0&en_too=1&type=0&answered=0&lastmodif=0, which is a search for "VG Safe", keeps suggesting the same search over and over, without ever messaging the user that no search result exists for that phrase
| Reporter | ||
Updated•16 years ago
|
| Reporter | ||
Comment 7•16 years ago
|
||
(In reply to comment #6)
> https://support-stage.mozilla.org/tiki-newsearch.php?locale=en&q=VG+safe&where=d&l=en&filter_lang=1&author=&filter_author=0&en_too=1&type=0&answered=0&lastmodif=0,
> which is a search for "VG Safe", keeps suggesting the same search over and
> over, without ever messaging the user that no search result exists for that
> phrase
Correction; sorry, I mean that it does, below, "No pages matched the search criteria", but then suggests the same term, as already noted above (it's not very noticeable, in comparison to the "Did you mean..." text.
Comment 8•16 years ago
|
||
So, there are a few problems at play here.
Firstly, there seems to be a problem with query encoding. A search for 'この' in the ja locale should give you a ton of articles, but only gives articles for the English translation. Using mb_convert_encoding with 'UTF-8' and 'auto' can fix this.
Secondly, "Did you mean" doesn't work with languages that don't use a 'space' as a delimiter for words. Not so sure about a fix for this. I need to look at the 'Did you mean' code still.
| Assignee | ||
Comment 9•16 years ago
|
||
(In reply to comment #6)
> https://support-stage.mozilla.org/tiki-newsearch.php?locale=en&q=VG+safe&where=d&l=en&filter_lang=1&author=&filter_author=0&en_too=1&type=0&answered=0&lastmodif=0,
> which is a search for "VG Safe", keeps suggesting the same search over and
> over, without ever messaging the user that no search result exists for that
> phrase
First, I see it on staging, but still doesn't happen locally. Eric, do you want to proceed with the mb_convert_encoding fixes? I can help out.
Secondly, "Did you mean" will probably be better to implement using an open source spell checker, or something of the sort. A few examples are in this thread:
http://www.sphinxsearch.com/forum/view.html?id=526
OR, even better, Media Wiki already implemented this from SphinxSearch, and we could try to use their code:
http://www.mediawiki.org/wiki/Extension:SphinxSearch#Did_You_Mean
Laura, what do you think?
| Assignee | ||
Updated•16 years ago
|
Summary: Search for Japanese characters in new search keeps suggesting the same characters/term → newsearch: "Did you mean?" suggests the same search terms
Comment 10•16 years ago
|
||
I filed bug 489277 to handle the encoding issues.
Updated•16 years ago
|
Severity: major → normal
Priority: P2 → --
Target Milestone: 1.0.2 → Future
| Assignee | ||
Updated•16 years ago
|
Summary: newsearch: "Did you mean?" suggests the same search terms → [newsearch] "Did you mean?" suggests the same search terms
| Assignee | ||
Comment 11•16 years ago
|
||
This is a very simple patch that should take care of it.
Attachment #386638 -
Flags: review?(smirkingsisyphus)
Attachment #386638 -
Flags: review?(laura)
| Assignee | ||
Updated•16 years ago
|
Target Milestone: Future → 1.3
| Assignee | ||
Comment 12•16 years ago
|
||
Oops, of course I meant "!=" not "==" :(
Attachment #386638 -
Attachment is obsolete: true
Attachment #387483 -
Flags: review?(smirkingsisyphus)
Attachment #387483 -
Flags: review?(laura)
Attachment #386638 -
Flags: review?(smirkingsisyphus)
Attachment #386638 -
Flags: review?(laura)
| Assignee | ||
Comment 13•16 years ago
|
||
I need to watch my attaching skills.
Attachment #387483 -
Attachment is obsolete: true
Attachment #387484 -
Flags: review?(smirkingsisyphus)
Attachment #387484 -
Flags: review?(laura)
Attachment #387483 -
Flags: review?(smirkingsisyphus)
Attachment #387483 -
Flags: review?(laura)
Updated•16 years ago
|
Attachment #387484 -
Flags: review?(smirkingsisyphus)
Attachment #387484 -
Flags: review?(laura)
Attachment #387484 -
Flags: review+
| Assignee | ||
Updated•16 years ago
|
Target Milestone: 1.3 → 1.4
Comment 14•16 years ago
|
||
Can just this one go in with 1.3? It's frustrating/confusing to users.
Target Milestone: 1.4 → 1.3
| Assignee | ||
Comment 15•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 16•16 years ago
|
||
Verified FIXED on https://support-stage.mozilla.org/tiki-newsearch.php?locale=en&q=VG+safe&where=d&l=en&filter_lang=1&author=&filter_author=0&en_too=1&type=0&answered=0&lastmodif=0; I regression-tested a bit as well (will keep testing).
Status: RESOLVED → VERIFIED
Updated•15 years ago
|
Whiteboard: sumo_only
You need to log in
before you can comment on or make changes to this bug.
Description
•