You are here: Re: why does MATCH/AGAINST fail to catch entries that LIKE does catch? « PHP Programming Language « IT news, forums, messages
Re: why does MATCH/AGAINST fail to catch entries that LIKE does catch?

Posted by lawrence k on 06/19/07 19:00

On Jun 19, 4:34 am, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Tue, 19 Jun 2007 09:08:18 +0200, lawrence k <lkrub...@geocities.com>
> wrote:
>
>
>
>
>
> > Wierd. Go to this page:
>
> >http://www.ihanuman.com/search.php
>
> > and search for "yoga"
>
> > This query gets run:
>
> > SELECT * FROM albums WHERE MATCH(name,description) AGAINST ('yoga')
> > ORDER BY id DESC
>
> > it returns nothing. (other searches work, but not the one for
> > "yoga").
>
> > But if I do SELECT * FROM albums WHERE description LIKE '%yoga%'
>
> > then I get 5 matches
>
> This clearly a MySQL issue, NOT PHP.
> However, I think this might shed some light, from the manual:
>
> The search result is empty because the word ?MySQL? is present in at least
> 50% of the rows. As such, it is effectively treated as a stopword. For
> large datasets, this is the most desirable behavior: A natural language
> query should not return every second row from a 1GB table. For small
> datasets, it may be less desirable."
>
> So, in short: 'yoga' might not be found as a separate word, or be
> considered to 'common' to match. For more details, ask a MySQL-group.

Thanks very much. That is very helpful to me.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация