Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Yngwiedis on November 07, 2005, 03:04:13 AM

Title: Search is not working...
Post by: Yngwiedis on November 07, 2005, 03:04:13 AM
Hello...

I have a problem with the search function.
I make a new fresh installation of SMF 1.1 RC1 here : http://www.igga.gr/smf11full
and as you can see the search is not working.
I make another installation of SMF 1.05 here : http://www.igga.gr/smf105
and the search is working without any problem.

I bet that is something to do with the PHP version of my server.
So i will need your help.

The PHP version on the server is 4.3.11
You can see PHP info here : http://www.igga.gr/phpinfo.php

Thank you in advance for any help and sorry for my bad english :)
Title: Re: Search is not working...
Post by: Yngwiedis on November 08, 2005, 02:46:37 PM
Can someone suggest me something about that problem ;

Thank you.
Title: Re: Search is not working...
Post by: JayBachatero on November 08, 2005, 02:50:44 PM
1.1 is having problems with some hosts and the search option.
Title: Re: Search is not working...
Post by: Yngwiedis on November 08, 2005, 05:16:04 PM
And what is the reason for this ?
What can i do ?
Title: Re: Search is not working...
Post by: Yngwiedis on November 09, 2005, 08:38:07 AM
Anyone ???
Title: Re: Search is not working...
Post by: Oldiesmann on November 09, 2005, 09:51:57 AM
Try changing the search method to "Regular Search - match complete words" (Admin -> Search -> Search method) and see if it works then...
Title: Re: Search is not working...
Post by: Yngwiedis on November 09, 2005, 10:12:37 AM
I just did that.
No change.
Search is not working.
Title: Re: Search is not working...
Post by: Compuart on November 09, 2005, 10:15:35 AM
Can you try disabling the spell check? Might be something in there that causes it.
Title: Re: Search is not working...
Post by: Yngwiedis on November 09, 2005, 10:22:59 AM
Heyyyy !!!!!
Thats it !!!!!!
I disable Spell Check and now search is working :)
But why is working in SMF 1.05 with Speel Check enabled ?

Thank you anyway Compuart :)
Title: Re: Search is not working...
Post by: Cait on November 09, 2005, 10:27:36 AM
I've been having the same problem with searching on 1.1 RC1.  Turned off the spell checker and voilĂ , the search now works.
Title: Re: Search is not working...
Post by: Compuart on November 09, 2005, 10:27:40 AM
The search function of 1.0.5 doesn't take advantage of the spell check feature. SMF 1.1 RC1 uses it to do search suggestions ('did you mean to search for xyz').
Title: Re: Search is not working...
Post by: Yngwiedis on November 09, 2005, 10:29:42 AM
Cool.
So you get a better search function with this.
Too bad i cant use it on my server.

Thank you very much again :)
Title: Re: Search is not working...
Post by: Cait on November 09, 2005, 01:43:14 PM
Quote from: Compuart on November 09, 2005, 10:27:40 AM
The search function of 1.0.5 doesn't take advantage of the spell check feature. SMF 1.1 RC1 uses it to do search suggestions ('did you mean to search for xyz').

Can integrated search/spell feature be easily disabled so that we can use the spell check and search on 1.1 RC1?  I don't mind fiddling with the code, so long as it's not a long and complicated fix.

Thanks! :)
Title: Re: Search is not working...
Post by: Compuart on November 09, 2005, 02:57:36 PM
It's an easy code fix. Just remove this block completely:

Code (Search.php) Select
// *** Spell checking
$context['show_spellchecking'] = $modSettings['enableSpellChecking'] && function_exists('pspell_new');
if ($context['show_spellchecking'])
{

...

$context['did_you_mean'] = preg_replace('~&#(\d{4,5}|[2-9]\d{2,4}|1[2-9]\d);~', '&#$1;', $context['did_you_mean']);
}
}
Title: Re: Search is not working...
Post by: Cait on November 09, 2005, 03:20:11 PM
Brilliant!  Thanks!
Title: Re: Search is not working...
Post by: JayBachatero on November 09, 2005, 03:45:40 PM
Quote from: Compuart on November 09, 2005, 02:57:36 PM
It's an easy code fix. Just remove this block completely:

Code (Search.php) Select
// *** Spell checking
$context['show_spellchecking'] = $modSettings['enableSpellChecking'] && function_exists('pspell_new');
if ($context['show_spellchecking'])
{

...

$context['did_you_mean'] = preg_replace('~&#(\d{4,5}|[2-9]\d{2,4}|1[2-9]\d);~', '&#$1;', $context['did_you_mean']);
}
}


Compuart it would be better if the spellcheck is disabled that i will be disabled for the search also.
Title: Re: Search is not working...
Post by: Compuart on November 09, 2005, 04:19:21 PM
If you disable spellcheck it's disabled in search as well. Removing that code block will simply remove it from search, but keep it for posts and personal messages.
Title: Re: Search is not working...
Post by: JayBachatero on November 09, 2005, 04:20:31 PM
Quote from: Compuart on November 09, 2005, 04:19:21 PM
If you disable spellcheck it isn't used in search either. Removing that code block will simply remove it from search, but keep it for posts and personal messages.

Oh ok.  But if its not working on the search it shouldn't be working on the posting in topcs.
Title: Re: Search is not working...
Post by: Compuart on November 09, 2005, 04:23:09 PM
indeed
Title: Re: Search is not working...
Post by: Cawagula on February 27, 2006, 10:00:45 PM
I want to thank you all, this has been happening to me, and I havn't been able to fix it for a month or so now. Thanks.
Title: Re: Search is not working...
Post by: JayBachatero on February 27, 2006, 10:44:54 PM
Can you please please post a link to your phpinfo.php file?
What is phpinfo.php? (http://www.simplemachines.org/community/index.php?topic=18250.0)