Jump to content

Fulltext search


f1r3fl3x

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.