Last modified: 2013-12-13 04:25:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31989, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29989 - Provide better messages if the search phrase contains part of the "search syntax"
Provide better messages if the search phrase contains part of the "search syn...
Status: RESOLVED DUPLICATE of bug 21102
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://en.wikipedia.org/w/index.php?...
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-20 21:26 UTC by Helder
Modified: 2013-12-13 04:25 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2011-07-20 21:26:27 UTC
Consider the following examples
1) "two or three words"
http://en.wikipedia.org/w/index.php?title=Special:Search&search=%22two+or+three+words%22&fulltext=Search
The page [["two or three words"]] doesn't exists and MW shows the message
--------------------------------------------
There were no results matching the query.
Create the page ""two or three words"" on this wiki!
--------------------------------------------

Since the quotes have a special meaning when used among the search terms, i.e. they are part of the "search syntax", the messages should be more contextualized. For example, if we search for "some words on Google Search Engine", we will get:
http://www.google.com/search?q=%22some+words+on+Google+Search+Engine%22
--------------------------------------------
No results found for "some words on Google Search Engine".
Results for some words on Google Search Engine (without quotes):
...
--------------------------------------------

2) intitle:Another example
http://en.wikipedia.org/w/index.php?title=Special:Search&search=intitle%3Aanother+example&fulltext=Search
--------------------------------------------
There were no results matching the query.
Create the page "Intitle:another example" on this wiki!
--------------------------------------------
the string "intitle" also has a special meaning, so when the user uses it, and get no results, MW could provide some indication that by dropping that term there could be some result.

The same idea applies to other strings having special meanings, such as "prefix" and symbols like "-" which is used to exclude some of the possible results.
Comment 1 Helder 2011-07-20 21:32:19 UTC
(In reply to comment #0)
> The same idea applies to other strings having special meanings, such as
> "prefix" and symbols like "-" which is used to exclude some of the possible
> results.

...and also to "ondiscussionpage", which is currently used by [[mw:Extension:LiquidThreads]]
http://www.mediawiki.org/w/index.php?title=Special:Search&search=EXAMPLE+ondiscussionpage%3ATalk%3AArticle+feedback&fulltext=1&ns90=1
and may lead to the creation of pages like
http://pt.wikibooks.org/w/index.php?title=Porque_somos_jogados_para_frente_do_%C3%B4nibus_quando_ele_freia_bruscamente_ondiscussionpage:Wikilivros:Pergunte_ao_bibliotec%C3%A1rio&action=edit&redlink=1
which will need to be deleted.
Comment 2 Mark A. Hershberger 2011-07-25 22:51:16 UTC
since "intitle:" is part of lucene, I think this would require a fix there, not in mw proper.
Comment 3 Helder 2012-08-01 20:13:46 UTC
There is a thread related to this on enwiki's village pump. I'm adding it above.
Comment 4 PartTimeGnome 2013-12-12 22:34:47 UTC
This appears to be a duplicate of bug 21102. (I don't have the option to resolve it as such though.)
Comment 5 Helder 2013-12-13 00:03:51 UTC

*** This bug has been marked as a duplicate of bug 21102 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links