Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
changing the minumum word length in mysql full text search
Old 03-25-2007, 11:19 PM changing the minumum word length in mysql full text search
crush123's Avatar
Webmaster Talker

Posts: 526
Trades: 0
hello,
the default word length in mysql full text search is 4.
I would like to reduce it to 3
I have searched some sites over the internet and read that I have to edit the my.cnf file in "/etc" folder

I have checked the files in that folder and there is no such file.
so I have created a file called my.cnf and placed this code in it.

[mysqld]
ft_min_word_len=3

then, I have deleted the old index and created the index again.

Now when I search again for 3 character words, it is not displaying results with those words.

Please inform me if I have done any mistake and tell me how to correct it.

I have contacted my hosting providers to locate the my.cnf file and they said, they can't change the file.

So, I am helpless

Please inform me what I have to do
Thank you.
__________________
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
crush123 is offline
Reply With Quote
View Public Profile Visit crush123's homepage!
 
 
Register now for full access!
Old 03-26-2007, 12:00 AM Re: changing the minumum word length in mysql full text search
Extreme Talker

Posts: 189
Trades: 1
What is your operating system?
Do you use and special package such as LAMPP?

For example if you use LAMPP on linux then my.cnf is located in /opt/lampp/etc/
Try to search that file. On linux try "find -name my.cnf"
__________________

Please login or register to view this content. Registration is FREE

Last edited by yellow1912; 03-26-2007 at 12:02 AM..
yellow1912 is offline
Reply With Quote
View Public Profile Visit yellow1912's homepage!
 
Old 03-26-2007, 02:57 AM Re: changing the minumum word length in mysql full text search
crush123's Avatar
Webmaster Talker

Posts: 526
Trades: 0
the operating system is linux.
I dont know anything about LAMPP etc.

I have requested my hosting providers ( hostmonster ) to find out the my.cnf file. but they said that they cant modify that file.

I doubt if that file can be modified by individual users rather than the hosting providers.

If I can modify that, I dont understand how to search for that file.

any help?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
crush123 is offline
Reply With Quote
View Public Profile Visit crush123's homepage!
 
Old 03-27-2007, 04:29 PM Re: changing the minumum word length in mysql full text search
Extreme Talker

Posts: 189
Trades: 1
Ok, seem like you are using a shared hosting. If so then sorry, you really can't modify it, it's out of your reach.
You have to use VPS or dedicated host to be able to fully control your servers. The price is more expensive, of course.
__________________

Please login or register to view this content. Registration is FREE
yellow1912 is offline
Reply With Quote
View Public Profile Visit yellow1912's homepage!
 
Old 03-27-2007, 10:56 PM Re: changing the minumum word length in mysql full text search
crush123's Avatar
Webmaster Talker

Posts: 526
Trades: 0
Hello yellow1912,
you are right.
I am using shared hosting.
and now, I donot have the resources to go for a dedicated hosting.

is there any other way to this problem?
thank you for the information
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
crush123 is offline
Reply With Quote
View Public Profile Visit crush123's homepage!
 
Old 03-28-2007, 03:59 AM Re: changing the minumum word length in mysql full text search
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Write your own search routine.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-28-2007, 10:02 AM Re: changing the minumum word length in mysql full text search
crush123's Avatar
Webmaster Talker

Posts: 526
Trades: 0
Hello chrishirst,
Thank you for your reply.
I have already implemented a code to search for 3 character words.
And I thought it will be very good if mysql could search for them using the full text index.

Mysql full text index makes things easy when compared to my own search routine.
Thank you.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
crush123 is offline
Reply With Quote
View Public Profile Visit crush123's homepage!
 
Old 04-02-2007, 05:52 PM Re: changing the minumum word length in mysql full text search
damien_ls's Avatar
Layershift

Posts: 474
Name: Damien
Trades: 0
Quote:
Originally Posted by crush123 View Post
Hello yellow1912,
you are right.
I am using shared hosting.
and now, I donot have the resources to go for a dedicated hosting.

is there any other way to this problem?
thank you for the information
You say that you don't have resources for dedicated hosting, but what about a VPS - or does your statement include both?

If you don't want to code your way out of the problem, a VPS may be your solution?
__________________

Please login or register to view this content. Registration is FREE
:: DDS & Dedicated, UK & USA-based
Please login or register to view this content. Registration is FREE
, Reseller & Shared Hosting
Experienced Parallels Platinum Partners (Plesk since 2001, Virtuozzo since 2003)
damien_ls is offline
Reply With Quote
View Public Profile
 
Old 04-05-2007, 12:54 PM Re: changing the minumum word length in mysql full text search
Junior Talker

Posts: 3
Name: Robin
Trades: 0
The full text search of MySQL is powerful and works well up to maybe 50,000 records. If your database will be less than that then it should do just fine. But you need your own server to change the minimum word length.

I have an application that has over 4 million records and I gave up on full text. Instead I created tables of all the unique words and then did my own matching. Probably 1,000 times faster than full text search. Also, creating the tables took a few days but now search is lightning fast
webchat is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to changing the minumum word length in mysql full text search
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38677 seconds with 12 queries