Hi all,
I'm stuck on a weird bug in some search code for my site. This is a simplified version that I've boiled the problem down to:
This statement correctly returns an ID and a score, as you would expect:
Code:
SELECT id, match (title) against ('search term') as score FROM ArticleDetails ORDER BY score DESC
But this formally identical statement just returns zeros for all scores:
Code:
SELECT id, match (xml) against ('search term') as score FROM ArticlesXML ORDER BY score DESC
It thus seems to me that the problem must be outside of my queries, but where is not obvious to me. The column for the first example is varchar(255) , and the second is longtext. Could the answer be somewhere here or in the indexing?
I've read through the relevant documentation and searched around, but no answers as yet. Any help would be much appreciated.