I have a table like below
CREATE TABLE `key_word` (
`primary_key` bigint(20) NOT NULL,
`indexVal` int(11) NOT NULL,
`hashed_word` char(3) NOT NULL,
PRIMARY KEY (`primary_key`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
Here is how I am going to create the index for this.
ALTER TABLE key_word ADD INDEX (hashed_word, indexVal)
This creates a BTREE INDEX. But I am willing to build a RTree index, because I am doing a full text search. How can I create this index in MySQL?