News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Search is not working...

Started by Yngwiedis, November 07, 2005, 03:04:13 AM

Previous topic - Next topic

Yngwiedis

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 :)
AmityHost.com - The Affordable Host

Yngwiedis

Can someone suggest me something about that problem ;

Thank you.
AmityHost.com - The Affordable Host

JayBachatero

1.1 is having problems with some hosts and the search option.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Yngwiedis

And what is the reason for this ?
What can i do ?
AmityHost.com - The Affordable Host

Yngwiedis

AmityHost.com - The Affordable Host

Oldiesmann

Try changing the search method to "Regular Search - match complete words" (Admin -> Search -> Search method) and see if it works then...
Michael Eshom
Christian Metal Fans

Yngwiedis

I just did that.
No change.
Search is not working.
AmityHost.com - The Affordable Host

Compuart

Can you try disabling the spell check? Might be something in there that causes it.
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

Yngwiedis

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 :)
AmityHost.com - The Affordable Host

Cait

I've been having the same problem with searching on 1.1 RC1.  Turned off the spell checker and voilà, the search now works.

Compuart

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').
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

Yngwiedis

Cool.
So you get a better search function with this.
Too bad i cant use it on my server.

Thank you very much again :)
AmityHost.com - The Affordable Host

Cait

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! :)

Compuart

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']);
}
}
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

Cait


JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Compuart

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.
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Compuart

Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

Cawagula

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.

Advertisement: