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

Home » FUDforum » FUDforum Suggestions » Indexing 2 character words
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Indexing 2 character words [message #38846] Sat, 01 September 2007 02:28 Go to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
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] Sun, 02 September 2007 22: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
add to buddy list
ignore all messages by this user
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 18:40 Go to previous messageGo to next message
donwang is currently offline  donwang
Messages: 1
Registered: March 2009
Location: Boston
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 01:05 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
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.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Fri Dec 15 05:15:40 EST 2017

Total time taken to generate the page: 0.00568 seconds