Hallo Lydia.h,
Leider hat es nicht geholfen. Ich kriege Match-Against nicht in den Griff.
Was kann ich denn alternativ tun, wenn ich z.b. die Wörter 'Hallo Welt' in einer Spalte AUF JEDEN FALL finden will (sowohl nur 'Hallo' als auch 'Welt' und 'Hallo Welt')?
Wie erwähnt: Verwende die Boolesche Volltextsuche.
In deinem Fall dürfte der Query etwa so aussehen (du musst ihn natürlich noch auf deine Bedürfnisse anpassen):
SELECT * FROM articles WHERE MATCH (title,body) AGAINST ('Hallo Welt' IN BOOLEAN MODE);
So werden alle Einträge mit 'Hallo', 'Welt' und 'Hallo Welt' gefunden.
Grüße
Marc Reichelt || http://www.marcreichelt.de/
--
Linux is like a wigwam - no windows, no gates and an Apache inside!
Selfcode: ie:{ fl:| br:> va:} ls:< fo:} rl:( n4:( ss:) de:> js:| ch:? sh:| mo:) zu:)
Linux is like a wigwam - no windows, no gates and an Apache inside!
Selfcode: ie:{ fl:| br:> va:} ls:< fo:} rl:( n4:( ss:) de:> js:| ch:? sh:| mo:) zu:)