stubarny Posted August 29, 2006 Share Posted August 29, 2006 Hi,I'm trying to code a search query for a database of about 500,000 job adverts (similar advert length to monster, careerbuilder etc).I have found this search code (http://iamcal.com/publish/articles/php/search/) which is suitable for 'small' tables. However at the bottom of the article it mentions that using a FULLTEXT index in mysql would be effective for medium sized databases. I'm assuming that 500,000 adverts is a 'medium' database so I'm thinking this could be a good solution, without having to get to grips with specialist indexing software (e.g. Zend Search Lucene - http://framework.zend.com/manual/en/zend.search.html) Please can you give me your opinions on whether or not you think simply using a FULLTEXT index is a good solution? (I'm only a 'keen amateur' php/sql programmer so i don't have much experience with the practicalities of running largish databases)Thanks a lot for your your time!Stewart Quote Link to comment https://forums.phpfreaks.com/topic/19069-indexing-text-in-databases/ Share on other sites More sharing options...
fenway Posted August 29, 2006 Share Posted August 29, 2006 500K is a good size for FULLTEXT -- it really depends on how "english-like" your search keywords are. Quote Link to comment https://forums.phpfreaks.com/topic/19069-indexing-text-in-databases/#findComment-82528 Share on other sites More sharing options...
stubarny Posted August 30, 2006 Author Share Posted August 30, 2006 Thanks, that's good news. I'm planning to include non-english text a year or two in the future so I'll keep an eye on the CPU usage, hopefully the processors will have sped up enough by then so there won't be a problem.Cheers,Stu Quote Link to comment https://forums.phpfreaks.com/topic/19069-indexing-text-in-databases/#findComment-82864 Share on other sites More sharing options...
fenway Posted August 30, 2006 Share Posted August 30, 2006 It actually has nothing to do with memory/CPU usage -- just that FULLTEXT is designed for English prose, so if you're looking for anything else, it's pretty much useless. Also, it has some funny quirks that only make sense of large datasets. Quote Link to comment https://forums.phpfreaks.com/topic/19069-indexing-text-in-databases/#findComment-82874 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.