0

I'm working to implement functionality to search records from database in which provided keywords are exists. So I chose FUll Text indexing. But it feels there are some of the drawbacks of this query. like we can't find two characters word. So I'm trying to use REGEX in mysql.

Here is my SQL query with FULLTEXT Query.

SELECT * FROM `table_name` WHERE MATCH (field_name) AGAINST ('+what +that' IN boolean MODE)

And I tried to convert this query to REGEX

SELECT * FROM `table_name` WHERE REGEXP '[[:<:]]what that[[:>:]]'

But this query is not working. Can anyone suggest me what I'm doing wrong in this query?

Lakhwinder Singh
  • 5,536
  • 5
  • 27
  • 52

0 Answers0