Skip to content

Regex Query for TEXT_MATCH is not working for input words with a space #14983

@rahulkrishna-dev

Description

@rahulkrishna-dev

Query being executed:

SELECT 
  keyword
FROM 
  keywords_rank_v1
WHERE 
  TEXT_MATCH(keyword, '/.*amul milk.*/')
  ORDER BY rank ASC
  LIMIT 100

The above query is expected to return all the keywords having amul milk but it is not returning anything. My hypothesis is that the regex expression is being treated as a term query because of the space character, I couldn't find a way to escape the space character. Please help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    troubleshootingHelp with diagnosing operational issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions