FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Indexing 2 character words
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Indexing 2 character words [message #38846] Sat, 01 September 2007 06:28 Go to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Bu default FUDfoum only indexes words that are 3 characters or longer. This is problematic, for example users cannot search for something like "VB".

Is there a setting to also index 2-character words? If not, can one be added?
Re: Indexing 2 character words [message #38857 is a reply to message #38846] Mon, 03 September 2007 02:56 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can change the code to do this, there is no setting to control this value at this time.

FUDforum Core Developer
Re: Indexing 2 character words [message #158598 is a reply to message #38857] Thu, 05 March 2009 23:40 Go to previous messageGo to next message
donwang is currently offline  donwang
Messages: 1
Registered: March 2009
Location: Boston
Karma: 0
Junior Member
Hi, Ilia,

I am newbie here.

How hard is to change the coding so 2-letter words can be indexed? Just a few lines, or massive amount of work? and where?

Thanks!

Don

ps.
I also have related issue on indexing numbers, which I will post under the original posting. Seems that not working for me for some reason.


Re: Indexing 2 character words [message #158602 is a reply to message #158598] Fri, 06 March 2009 06:05 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
If I remember correctly, it wasn't necessary to change any code. FUDforum uses MySQL's Full-Text Search facility, which needs to be tweaked to index what you want to search for.

Add the following to your MySQL config file and restart the database:
# Minimum word length to be indexed by the full text search index.
# You might wish to decrease it if you need to search for shorter words.
# Note that you need to rebuild your FULLTEXT index, after you have
# modified this value.
ft_min_word_len = 2


When done, you can recreate the search index from FUDforum's Admin Control Panel.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Please add FUDforum to Forum Matrix
Next Topic: Directory of the sites that use FUDforum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat May 25 04:50:07 GMT 2024

Total time taken to generate the page: 0.02767 seconds