Anleitung zur Benutzung von Fulltext-Indizes mit MySQL?

CREATE FULLTEXT INDEX ft_index 
  ON produkte (titel, untertitel, Artikelnummer, ISBN);

Ergebnis: »Query OK, 1460 rows affected (0.34) sec«

SELECT * FROM produkte
  WHERE MATCH (titel, untertitel, Artikelnummer, ISBN)
  AGAINST ('Buch');

Ergebnis: »18 rows in set (0.04) sec«

CREATE FULLTEXT INDEX ft_index
  ON werbetexte (text);

Ergebnis: »Query OK, 2519 rows affected (0.89) sec«

SELECT * FROM werbetexte WHERE MATCH (text) AGAINST ('Buch');

Ergebnis: »677 rows in set (0.09) sec«


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.