MySQL Full Text Search on columns with special characters -
i have mysql column contains character 's (eg. lee's). when performing full text search "lee" on column not return results. search including "'s" (e.g. "lee's") takes long time return huge number of results.
how mysql full text search handle character "'s" , what's best way make search on type's column work?
thanks.
full text search depends on definition of collation used, whether particular character considered considered punctuation character or letter character. myisam, apostrophe should considered character in word, not punctuation.
there's bug report innodb full text search regarding apostrophe; it's not clear whether using myisam or innodb.
https://dev.mysql.com/doc/refman/5.6/en/full-text-adding-collation.html
and again, depends on collation used, how apostrophe handled.
reference: https://dev.mysql.com/doc/refman/5.6/en/full-text-adding-collation.html
Comments
Post a Comment