Jump to content

Recommended Posts

My table has a column for members to enter a text description up to a few hundred characters.

 

I want a visitor to search that column using keywords entered into an HTML form.

 

...just read a tutorial at www.onlamp.com about MySQL FULLTEXT searching...seems very powerful.

 

Question: Would you use that or just insert a LIKE clause in your query?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/957-search-fulltex-or-like/
Share on other sites

It would depend on how much people were entering for their descriptions, and how many users you had. This is from the mysql website:

 

Such a technique works best with large collections (in fact, it was carefully tuned this way). For very small tables, word distribution does not reflect adequately their semantic value, and this model may sometimes produce bizarre results.

 

 

They don\'t seem to specify how large is \"large\", but I don\'t think a few hundred characters would be large, unless you have a large number of members.

Link to comment
https://forums.phpfreaks.com/topic/957-search-fulltex-or-like/#findComment-3313
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.