Page MenuHomePhabricator

searching with a leading "[" finds more hits
Closed, InvalidPublic

Description

Author: darren

Description:
We are running an intranet using mediawiki , initially on ver 1.2.5 , now on ver
1.3.7

MediaWiki (http://wikipedia.sf.net/): 1.3.7 
PHP (http://www.php.net/): 4.3.4 (apache) 
MySQL (http://www.mysql.com/): 3.23.58

I've noticed that when I search for the word "vision" , mediawiki takes me
directly to a page with that word in it's title.. (Vision (62 bytes) , it
overlooks the other potential page with that word in the title Our Vision (173
bytes)

Also I knew that this particular word was in lots of places throughout the wiki,
so I played around...

Searching for [vision gave me what is a more correct list of hits...

Search results

For query "[vision"
For more information about searching Knowledge, see Searching Knowledge.

Showing below 9 results starting with #1.

View (previous 20) (next 20) (20 | 50 | 100 | 250 | 500).
Article title matches

  1. Our Vision (173 bytes) 1: Our [[vision]] is to provide South Australians with access to ...
  2. Vision (62 bytes)

Page text matches

  1. Our Vision (173 bytes) 1: Our [[vision]] is to provide South Australians with access to ...
  2. Effectiveness (348 bytes) 1: ...orrectly, consistent with organizational mission, vision, values and

in support of the organization's goal...

  1. Staff Page (1508 bytes)
  2. Main Page (1727 bytes)
  3. About Adam (5025 bytes)
  4. Dealers (19118 bytes)
  5. Policy and Guidelines (26250 bytes) 4: <center>'''[[Our Vision]]'''<br> 5: ''"Our vision is to provide South Australians with access to In...

All these hits are correct, the word "vision" appears on every one of these pages.

I've not yet managed to replicate this on wikipedia.


Version: 1.3.x
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz849

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 7:02 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz849.
bzimport added a subscriber: Unknown Object (MLST).

"takes me directory to a page" sounds like you're using the "go" button, which sends you directly to a page if it can identify an exact
or very nearly exact match. If you use the "search" button, it should always return actual search matches.

You might also be describing the "fuzzy search", which is broken and largely not useful. If so, disable it with $wgDisableFuzzySearch

true;

darren wrote:

What I was doing was the same as I do when using google, I type in the search string, then hit enter.

Doing this in mediawiki activates the Go button, not the search button
The leading [ somehow actives the Search button

So, it's a feature, not a bug !

It would be nice to have the default behaviour when you hit Enter to be Search, not Go - but that's a feature request, not a bug :-)

marking as invalid.

thanks,
darren.

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:14 AM
epriestley added a commit: Unknown Object (Diffusion Commit).
epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:21 AM
epriestley added a commit: Unknown Object (Diffusion Commit).