ciao a tutti.. scusate volevo sapere se era normale che una ricerca fulltext non torna risultati se nella tabella vi e' presente solo un record mentre se ci sono + righe e si ripete la stessa identica ricerca tra i risultati compare il record iniziale....
in pratica se ho tante righe la ricerca
select *,MATCH (titolo,testo) AGAINST ('windows')
from articoli
where MATCH (titolo,testo) AGAINST ('windows')
mi da risultati se invece ho solo una riga contenente la parola windows invece non da risultati..
Codice PHP:
CREATE TABLE `articoli` (
`id_articolo` int(10) unsigned NOT NULL auto_increment,
`titolo` varchar(200) default NULL,
`testo` text,
PRIMARY KEY (`id_articolo`),
FULLTEXT KEY `titolo` (`titolo`,`testo`)
) TYPE=MyISAM AUTO_INCREMENT=8 ;
--
-- Dump dei dati per la tabella `articoli`
--
INSERT INTO `articoli` VALUES (1, 'Prova Intervista', 'Apache\r\n Version 1.3 (and up)\r\n\r\n What is it?\r\n -----------\r\n\r\n Apache is an HTTP server, originally designed for Unix systems. This\r\n is the version of Apache for Microsoft Windows 2000, NT, 98, and 95\r\n systems. Like the Unix version, it includes many frequently\r\n requested new features, and has an API that allows it
questo se serve e' la riga interessata (un semplice esempio per testare la funzionalità di ricerca)