You are here: Re: Full-text searches sucks? « PHP « IT news, forums, messages
Re: Full-text searches sucks?

Posted by Raj Shekhar on 03/24/05 22:37

"Ryan A" <ryan@coinpass.com> writes:

> Hey,
>
> > > I dont want to do that as its only mysql 4.1+ compatable,
> >
> > IN BOOLEAN MODE was added in version 4.0.1 not 4.1, for what it's
> > worth.
>
> Oops, thats what i meant. The problem is a LOT of hosts are still on 3.23.xx
> so I dont want to do the BOOLEAN MODE thing.


Here is the workaround that I used.

- If the search term is smaller than 3 words, I did a LIKE.

- If the search term is greater than 3 words, do a fulltext search
i.e. MATCH AGAINST (no BOOLEAN MODE)

- If the fulltext search did not find any results, do the search
again, but this time use LIKE instead of MATCH AGAINST.

This gave me good enough results.


--
Raj Shekhar Y! : Operations Engineer
MySQL DBA, programmer and slacker Y!IM : lunatech3007
home : http://rajshekhar.net blog : http://rajshekhar.net/blog/

 

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

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