Last modified: 2010-05-15 16:03:12 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 T18358, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16358 - Search stopped working
Search stopped working
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.13.x
Other Linux
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://wiki.s1mp3.org
:
Depends on: 16823
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-15 23:12 UTC by Wladston Viana
Modified: 2010-05-15 16:03 UTC (History)
3 users (show)

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


Attachments

Description Wladston Viana 2008-11-15 23:12:27 UTC
The search function on my wiki stopped working, since some versions ago.

You can check it here http://wiki.s1mp3.org/Special:Search

I have just updated to 1.13.2.

Can anyone tell me if there is a way out that doesn't involve a fresh install with hand-backup and hand-insert the pages ? 

Thanks!
Comment 1 Chad H. 2008-11-16 15:16:47 UTC
How does it not work, specifically? I was able to search for "test" and get results.
Comment 2 Wladston Viana 2008-11-16 20:09:57 UTC
demon,

http://wiki.s1mp3.org/Special:Search?search=test&go=Go returns no results, check it again....

it doesn't return anything for any string that you search.
Comment 3 DaSch 2008-11-18 00:13:00 UTC
I think I've a similar problem in my wiki (http://www.wecowi.de) it seams that searchterms with 3 and less chars give no results, all other work fine

and it seams that it has something todo with the mysql statement, because when using the statment given in http://www.mediawiki.org/wiki/Searchindex_table and querying directly to the database also retunrs no result

so maybe it's also a bug in MySQL, although wecowi is using "5.0.32-Debian_7etch6" and s1mp2.org "5.0.67-log"
on wikimedia with "4.0.40-wikimedia-log" it works correctly
Comment 4 Wladston Viana 2008-11-18 23:45:56 UTC
"searchterms with 3 and less chars give no results," -- that's not a bug, according to then it's a "feature", check the documentation :) 

with my with, though, it doesn't matter the length of the string, it doesn't return anything anyways :/
Comment 5 DaSch 2008-11-20 00:14:08 UTC
how ^demon said, when using "test" it returns a result!

how I said, the searching of short strings in wikipedia works (MySQL4) in wikis with MySQL5 it does not work

for the first there should be displayed a message when a to short string is search to not confuse the users
Comment 6 Wladston Viana 2008-11-20 01:18:02 UTC
Ahn, I got it!

But, when you put test on the search box on the left "seach" window, it doesn't work.

it only works if you place the search terms directly on the search page, and not on the mini-search window.


DaSch, Demon, can you guys confirm that ? 

Thanks!
Comment 7 DaSch 2008-12-17 12:02:42 UTC
still there in 1.13.3

There should be done something, maybe only a message that searching with less then 3 characters does not work
Comment 8 Brion Vibber 2008-12-28 21:01:19 UTC
This looks like your URL rewriting rules are bad and are not passing on the query string. If doing this with Apache's mod_rewrite, you should add the [QSA] option to your rule definition.

(Note the totally unrelated 3-letter issue is dealt with in the upcoming 1.14 release -- bug 7726. You can of course fix your MySQL configuration manually and fix it for any version of MediaWiki.)
Comment 9 Wladston Viana 2008-12-28 21:25:36 UTC
Brion,

The search page was passing the query string to index.php, and that was working, so I manually changed the search box to pass the query to index.php, and now that works ...

How would apache not be passing on the querystring ? Can you give me an example ?


Thanks a lot for the help.
Comment 10 DaSch 2010-02-05 00:49:26 UTC
isn't this fixed? works in my wiki
Comment 11 Chad H. 2010-02-05 00:57:31 UTC
The 3-letter-word bug was resolved FIXED, as Brion mentioned above. The other issue is related to rewrite rules, which WORKSFORME.

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


Navigation
Links