Earlier: ... Default mediawiki search is really bad. You should use a search extension, like Lucene...
Response: ... Since those are difficult to set up at the best of times and impossible for most shared hosts, it might help if you instead listed out the things that are "really bad" about it so they can be fixed for the default install... Offhand, the split between title and text searches is a bit odd, but the only really "bad" thing is that MySQL's search engine by default excludes short and common words... Can you think of any other problems?
Peter Blaise responds: Me thinks there is equivalence between a non-specific comment like "difficult to set up at the best of times" and a non-specific comment like "default mediawiki search is really bad". We're all pretty much equally challenged to present what we think we know well in a written form others can easily access.
----
Anyway, regarding "...MySQL's search engine by default excludes short...words", from
http://www.mediawiki.org/wiki/Manual_talk:Configuration_settings#using_s earch_for_a_3_letter_word
I put the following in
x:...\mysql5\my.ini
[mysqld] ft_min_word_len=2 [myisamchk] ft_min_word_len=2 ## NEW for 2-letter searching, even 2-character words should be ## searchable - rebuild the text index by running (in DOS): ## C:...mediawiki\maintenance>_ php maintenance/rebuildtextindex.php [Enter]
.... and, of course, ran php maintenance/rebuildtextindex.php
----
But, regarding "...MySQL's search engine by default excludes...common words..." YOU'RE RIGHT! A search for the words "the" and "an" not only didn't produce a search result, but also revealed that
Search in namespaces: [ ] List redirects
... is NOT pre-selectable in Special:Preferences / My Preferences!
I'm just saying.
Now I really regret that I did not learn php well enough. Otherwise, I could have written my search engine in php instead of java.
Some day, I will port the search engine to php as well so that it is even easier to work with mediawiki ;-)
Jian ------------------------ A new java crawler based mediawiki search engine: http://www.hongandjian.com/hongandjian/index.php/Mediawiki_Search_Download
On 10/16/07, Monahon, Peter B. Peter.Monahon@uspto.gov wrote:
Earlier: ... Default mediawiki search is really bad. You should use a search extension, like Lucene...
Response: ... Since those are difficult to set up at the best of times and impossible for most shared hosts, it might help if you instead listed out the things that are "really bad" about it so they can be fixed for the default install... Offhand, the split between title and text searches is a bit odd, but the only really "bad" thing is that MySQL's search engine by default excludes short and common words... Can you think of any other problems?
Peter Blaise responds: Me thinks there is equivalence between a non-specific comment like "difficult to set up at the best of times" and a non-specific comment like "default mediawiki search is really bad". We're all pretty much equally challenged to present what we think we know well in a written form others can easily access.
Anyway, regarding "...MySQL's search engine by default excludes
short...words", from
http://www.mediawiki.org/wiki/Manual_talk:Configuration_settings#using_s earch_for_a_3_letter_word
I put the following in
x:\...\mysql5\my.ini [mysqld] ft_min_word_len=2 [myisamchk] ft_min_word_len=2 ## NEW for 2-letter searching, even 2-character words should be ## searchable - rebuild the text index by running (in DOS): ## C:\...mediawiki\maintenance\>_ php
maintenance/rebuildtextindex.php [Enter]
.... and, of course, ran php maintenance/rebuildtextindex.php
But, regarding "...MySQL's search engine by default
excludes...common words..." YOU'RE RIGHT! A search for the words "the" and "an" not only didn't produce a search result, but also revealed that
Search in namespaces: [ ] List redirects ... is NOT pre-selectable in Special:Preferences / My
Preferences!
I'm just saying.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
At 16.10.2007 21:30 Monahon, Peter B. wrote:
Anyway, regarding "...MySQL's search engine by default excludes short...words", from
http://www.mediawiki.org/wiki/Manual_talk:Configuration_settings#using_searc...
(...)
.... and, of course, ran php maintenance/rebuildtextindex.php
Hello,
for me it`s on the DOS-prompt: G:\Programme\xampp\htdocs\Wiki\maintenance>g:\Programme\xampp\php\php rebuildtextindex.php, but I get: "DB connection error: Access denied for user 'ODBC'@'localhost' (using password: NO) (localhost)"
Can you tell me, how I could include my password (I don`t know it right now, I installed MediaWiki on top of XAMPP on Win XP for my LAN).
Thanks!
Michael
Michael Logies wrote :
for me it`s on the DOS-prompt: G:\Programme\xampp\htdocs\Wiki\maintenance>g:\Programme\xampp\php\php rebuildtextindex.php, but I get: "DB connection error: Access denied for user 'ODBC'@'localhost' (using password: NO) (localhost)"
Can you tell me, how I could include my password (I don`t know it right now, I installed MediaWiki on top of XAMPP on Win XP for my LAN).
Did you set the parameters in AdminSettings.php properly ? (it's in the same folder than LocalSettins.php, rename AdminSettings.sample if you don't find it)
Monahon, Peter B. wrote :
But, regarding "...MySQL's search engine by default excludes...common words..." YOU'RE RIGHT! A search for the words "the" and "an" not only didn't produce a search result, but also revealed that
see http://lists.wikimedia.org/pipermail/mediawiki-l/2007-October/023931.html for a how-to about avoiding the common words exclusion
mediawiki-l@lists.wikimedia.org