You are here: Re: mysql fulltext « PHP Programming Language « IT news, forums, messages
Re: mysql fulltext

Posted by Stefan Rybacki on 04/15/06 06:17

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

kristian schrieb:
> not quite, although it fits the '*apples' problem.
>
> But if I enter a search phrase like 'php5 mysql' it dosnt match
> anything. If I use select title, description from sometable
> where match (title,description) against ('$word' in boolean mode) I
> can add '$word*' and I will get results where $word is at the
> beginning, what I want is also to have results where $word is at the
> end.
>
Unfortunately this is not supported by the nature of how mysql fulltext
index works.
What you can do is some tricky stuff like having your text also in a
mirrored version like "drow" and also an index on it. That way you could
also find words ending on "word" by doing a search against
'str_reverse($word)*'.

This was just a thought out of the blue and since I don't know your
entire design and stuff it fits or it doesn't.

Regards
Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)

iD8DBQFEQGXIyeCLzp/JKjARApGCAKCAAUTJWnsyKuIejtzg4t6X1T/Y1QCfaLLS
nskbus9X3jIfa/tVooe7SPk=
=Lu7u
-----END PGP SIGNATURE-----

 

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

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