[eluser]eckelarsson[/eluser]
[quote author="eckelarsson" date="1243885498"]Hello!
Trying out FULLTEXT search and a get an anyoing error when trying to match with two columns.
Using code
Code:
$this->db->where('MATCH (Foretag, SNI) AGAINST ("'. $fritext .'")', NULL, FALSE);
Get error
Code:
A Database Error Occurred
Error Number: 1191
Can't find FULLTEXT index matching the column list
SELECT * FROM (`em_register`) WHERE MATCH (Foretag, SNI) AGAINST ("Butik") LIMIT 5
When i try with only one column it works fine (with both colum "Foretag" and "SNI").
What causes this?[/quote]
Found me a solution.
Needet to this, on both fields at the same time.
ALTER TABLE 'table' ADD FULLTEXT('field', 'field', etc etc);