Full text query with a single quote

后端 未结 3 582
时光说笑
时光说笑 2020-12-20 19:37

I\'m having a problem when I try to do a full text search in boolean mode using a string with a single quote and an asterisk wildcard, i.e. \"levi\'s*\": it seems to search

3条回答
  •  再見小時候
    2020-12-20 19:51

    I guess you should double quote the string you need to search for if it contains single quotes

    Eg: MATCH(value) AGAINST ('"levi\'s"* lacost*' IN BOOLEAN MODE)

提交回复
热议问题