Closed Thread
Results 1 to 4 of 4

Thread: MySQL: MATCH AGAINST and LIKE

  1. #1
    BASHERS33 is offline Programmer
    Join Date
    Apr 2009
    Posts
    196
    Rep Power
    0

    MySQL: MATCH AGAINST and LIKE

    If I am performing a search for short varchar fields wouldn't it be best to use LIKE rather than match against? What are reasons for one vs. the other? LIKE doesn't restrict on characters and doesn't force the search term to be an exact word and I assume for short fields data LIKE would be fine?

    I never figured out how to do proper searches to begin with such as using + and - and in the example of MATCH AGAINST I have... well if you flip the words and search it will give no results wheras on search engine sites you can type them in any order for example.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    BASHERS33 is offline Programmer
    Join Date
    Apr 2009
    Posts
    196
    Rep Power
    0

    Re: MySQL: MATCH AGAINST and LIKE

    ...........................

  4. #3
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: MySQL: MATCH AGAINST and LIKE

    I did some research, but couldn't find enough about MATCH AGAINST to begin to help you. It is not the same as LIKE, I did learn that much.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  5. #4
    BASHERS33 is offline Programmer
    Join Date
    Apr 2009
    Posts
    196
    Rep Power
    0

    Re: MySQL: MATCH AGAINST and LIKE

    Yeah I don't know too much about it, but it's used by Invision for search functions (or it was in 2.3, I guess it still is) and then you're tied to the whole minimum of three characters and it searches for complete words.

    In the past I think I was told that for short fields such as these varchar ones like is fine to use. Although it also wouldn't be as accurate in that it may return more irrelevant results. I dunno. I am going with like and going to get rid of the fulltext index I think.... and forget about match against for this particular program. I'm pretty sure that match against is used more for large fields, such as posts.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Chess match
    By asafe in forum ASCII Chess
    Replies: 6
    Last Post: 06-18-2011, 02:44 PM
  2. Replies: 4
    Last Post: 09-29-2010, 09:26 AM
  3. No match for operator=
    By matio in forum C and C++
    Replies: 2
    Last Post: 07-21-2010, 12:15 PM
  4. preg match getting me down!
    By adzeds in forum PHP Development
    Replies: 0
    Last Post: 03-02-2010, 01:11 AM
  5. Anyone up for a friendly match?
    By Parabola in forum ASCII Chess
    Replies: 25
    Last Post: 08-27-2009, 03:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts