lcollong
FabriKant d'applications web
Hi,
Using the J! search plugin to allow for a global search across several tables, I'm facing errors 500
I've tried to simplify all what I can (only one list, very few non-joined elements...) but it still there.. Si I've investigate and found the following query triggering the error :
Running it in phpmyadmin shows up exactly the same error. Looking at the index, it shows Fabrik created an index on the cont_nom column. If I change this index from "Index" to "fulltext", the query give back the expected result without throwing errors.
However I had to change it as it does not allow "distinct" together with an order by clause on a column which is not part of the select. Here is the final query giving expected results :
Fabrik is supposed to create index as needed isnt'it ? Why did it miss this one ? Is it related to something wrong with my DB or my table ? Could it be the mix of MyIsam / InnoDB mix in the tables (don't know why ?) ? Any idea welcome...
Thanks,
Laurent
Using the J! search plugin to allow for a global search across several tables, I'm facing errors 500
500 Fabrik has generated an incorrect query for the list Contacts: Can't find FULLTEXT index matching the column list
I've tried to simplify all what I can (only one list, very few non-joined elements...) but it still there.. Si I've investigate and found the following query triggering the error :
Code:
SELECT DISTINCT `contact`.`cont_id` AS __pk_val0 FROM `contact` WHERE ( MATCH(`contact`.`cont_nom`) AGAINST ('+bouch*' IN BOOLEAN MODE) ) ORDER BY `contact`.`cont_nom` ASC
Running it in phpmyadmin shows up exactly the same error. Looking at the index, it shows Fabrik created an index on the cont_nom column. If I change this index from "Index" to "fulltext", the query give back the expected result without throwing errors.
However I had to change it as it does not allow "distinct" together with an order by clause on a column which is not part of the select. Here is the final query giving expected results :
Code:
SELECT `contact`.`cont_id` AS __pk_val0, cont_nom FROM `contact` WHERE ( MATCH(`contact`.`cont_nom`) AGAINST ('+bouch*' IN BOOLEAN MODE) ) ORDER BY `contact`.`cont_nom` ASC
Fabrik is supposed to create index as needed isnt'it ? Why did it miss this one ? Is it related to something wrong with my DB or my table ? Could it be the mix of MyIsam / InnoDB mix in the tables (don't know why ?) ? Any idea welcome...
Thanks,
Laurent