View Full Version : Search problem??
Hi
I'm very new in this forum and have just installed dekiwiki.
But the search function does not seem to work properly - it will not search though all the new wiki sites or attachments (doc, pdf) I have added??
Can anyone help me??
Has it something to do with lucene??
I'm running on Fedora Core5 final.
phuqmnb
03-22-2007, 08:19 PM
Hi
I'm very new in this forum and have just installed dekiwiki.
But the search function does not seem to work properly - it will not search though all the new wiki sites or attachments (doc, pdf) I have added??
Can anyone help me??
Has it something to do with lucene??
I'm running on Fedora Core5 final.
Is it indexing anything? I just recently solved the same problem (thanks to Pete_E).
Is it indexing anything? I just recently solved the same problem (thanks to Pete_E).
Don't know!
How can I check that??
phuqmnb
03-22-2007, 08:30 PM
What does it give you when you enter in a search?
Mine wasn't coming back with anything. So, I re-enabled the internal search by adding this to my LocalSettings.php file:
$wgDisableInternalSearch = false;
That indexed wiki articles, but not file attachments.
I had to do some more work to get the mwlucene script to work correctly.
What does it give you when you enter in a search?
Mine wasn't coming back with anything. So, I re-enabled the internal search by adding this to my LocalSettings.php file:
$wgDisableInternalSearch = false;
That indexed wiki articles, but not file attachments.
I had to do some more work to get the mwlucene script to work correctly.
It returns nothing when i search for somthing in the wiki sites and attachments I have added.. but it returns something when I search for something in the wiki sites that are by default in the installation.
I will try the
$wgDisableInternalSearch = false;
But I also need to get the search to work in doc and pdf files??
It returns nothing when i search for somthing in the wiki sites and attachments I have added.. but it returns something when I search for something in the wiki sites that are by default in the installation.
I will try the
$wgDisableInternalSearch = false;
But I also need to get the search to work in doc and pdf files??
Okay I have now tried to add the $wgDisableInternalSearch = false;, and then it returns some results.. but then they are listet in a different and not pretty way??
phuqmnb
03-22-2007, 08:46 PM
This is what worked for me:
From Pete_E:
Maybe your /etc/init.d/mwlucene file is screwed up. Could you try grabbing a fresh copy from me?
wget http://www.mindtouch.com/~petee/mwlucene
chmod a+x mwlucene
cp mwlucene /etc/init.d/
/etc/init.d/mwlucene restart
I made sure my database name was on line #5 and my database username and password were correct (line 47 and 48) in the /etc/mwsearch.conf.
Then I ran:
/usr/local/bin/MWUpdater --rebuild
as root (or in my case I used sudo).
Then I restarted the service:
/etc/init.d/mwlucene restart
All of this, of course, was done after following the section in the install guide on how to Install and Configure Search Indexing (http://doc.opengarden.org/DekiWiki/Installation_Guide#Install_and_Configure_Search_In dexing)
I also had to turn off the internal search feature.
This is what worked for me:
From Pete_E:
I made sure my database name was on line #5 and my database username and password were correct (line 47 and 48) in the /etc/mwsearch.conf.
Then I ran:
/usr/local/bin/MWUpdater --rebuild
as root (or in my case I used sudo).
Here i get an error i the middel:
1290 [3172672] ERROR MediaWiki.Search.Updater.MWSearch (null) - Error: error
MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts ---> System.Net.Sockets.SocketException: No such host is known
but it seems to continue??
Then I restarted the service:
/etc/init.d/mwlucene restart
All of this, of course, was done after following the section in the install guide on how to Install and Configure Search Indexing (http://doc.opengarden.org/DekiWiki/Installation_Guide#Install_and_Configure_Search_In dexing)
I also had to turn off the internal search feature.
Is it a problem that I have followed the Fedora Core 4 installation guide? I have ofcause used core 5 packages.
http://doc.opengarden.org/DekiWiki/Installation_Guide/Fedora_Core_4
And the opration didn't solve the problem?? :(
Here i get an error i the middel:
1290 [3172672] ERROR MediaWiki.Search.Updater.MWSearch (null) - Error: error
MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts ---> System.Net.Sockets.SocketException: No such host is known
but it seems to continue??
Is it a problem that I have followed the Fedora Core 4 installation guide? I have ofcause used core 5 packages.
http://doc.opengarden.org/DekiWiki/Installation_Guide/Fedora_Core_4
And the opration didn't solve the problem?? :(
HEY.. got it working... jubiii... :)
I had at some point changed my /etc/hosts file, so that the loopback address was disabled...doh..
I enabled it, an ran /usr/local/bin/MWUpdater --rebuild again, and /etc/init.d/mwlucene restart
But thanks alot for your help... now i will play some more with it.. Thing i will try to mess with the colours.. if thats possible :)
Powered by vBulletin™ Version 4.1.3 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.