Jump to content

Recommended Posts

I looked at some examples in the net, but here isn't a good example on how to create an accurate fulltext search. Will anyone show me how to do it. I wrote this code

SELECT * FROM lyrics WHERE MATCH (search_key) AGAINST ('"+search* +words*"' IN BOOLEAN MODE) LIMIT 10

My MySQL version is 5.0.67-community-log.

:-X

Link to comment
https://forums.phpfreaks.com/topic/155431-fulltext-search/
Share on other sites

Then don't use mysql for searching text. It's slow and the results aren't great. Implement a search using a fulltext search index using the likes of Sphinx or Lucene. Far better and much, much faster.

 

http://sphinxsearch.com/docs/manual-0.9.9.html

http://framework.zend.com/manual/en/zend.search.lucene.html

Link to comment
https://forums.phpfreaks.com/topic/155431-fulltext-search/#findComment-818335
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.