Hopefully I just can't see the forest for the trees but my full text search behaves very strangely and I cannot solve this by myself. (I tried to search for a solution but so far no luck, so any help is greatly appreciated.)
So my problem is: if I search for "tök" (it means "pumpkin" in Hungarian) the list also contains results with "tok" (which means "case"). If I search for a pumpkin I clearly don't want a phone case or such things.
My system is MySQL every table is in InnoDB, utf8_general_ci
this is the ( simplified ) query:
SELECT id_item,item_title,tag_name, MATCH (item_title) AGAINST ('tök' IN NATURAL LANGUAGE MODE) AS title_relevance, MATCH (tag_name) AGAINST ('tök' IN NATURAL LANGUAGE MODE) AS tag_relevance
FROM item_translations
WHERE NULL IS NULL
AND ( MATCH (tile_item_title) AGAINST ('+tök' IN NATURAL LANGUAGE MODE ) OR MATCH (tag_name) AGAINST ('+tök' IN NATURAL LANGUAGE MODE ) )
AND id_language=1
ORDER BY title_relevance DESC, tag_relevance DESC
LIMIT 0,40
PS: the keywords are not always in Hungarian because this website is multilingual so I need a relatively flexible solution which works with most of the accented letters (if it's possible)