PDA

View Full Version : Search string length



match
06-05-2005, 10:05
Just noticed there appears to be a limit that you can't search for words of 3 characters or less in the search page.

This means that I can't do a search through the forums for 'axe', 'GB', 'fak' etc.

Any chance this is a tuneable setting?

giancarlo
06-05-2005, 13:19
I don't think this can be dropped any further down, it's due to how the search indexes the site.
If it goes down to 2 /3 words then it starts looking at everything like "an" , "and" , "we".
Which will then slow the site down considerably.

Tony could have a look in the admin, but I think it's set to a 3 for this reason.

Cheers
Carlo

Martyn
06-05-2005, 20:06
It can be lowered, but the impact on the server is huge.

Just use a wilcard - and asterisk - beore or/and after the word:

axe*
*GB*
fak*

etc....

the asterisk counts as a character for the search, but it will also yield other words, so a search for axe* will give you "axe" and "axed" etc.

Moonraker
06-05-2005, 20:41
It can be lowered, but the impact on the server is huge.

Just use a wilcard - and asterisk - beore or/and after the word:

axe*
*GB*
fak*

etc....

the asterisk counts as a character for the search, but it will also yield other words, so a search for axe* will give you "axe" and "axed" etc.
Good tip, thanks Martyn :)