MySQL Forums
Forum List  »  Full-Text Search

Re: How to search based on first LETTER of consecutive words
Posted by: Rick James
Date: April 28, 2013 09:16PM

I suspect that [[:<:]] does not work for Indian text.

This comes close:

WHERE CONCAT(' ', REPLACE(`Scripture`, ',', ' ')) RLIKE CONCAT(' ', UNHEX('E0A8A6'), '[[:alpha:]]* +', UNHEX('E0A8A6'), '[[:alpha:]]* +', UNHEX('E0A8A6'))

It is replacing the ',' by a space, then defining start of word as one or more spaces followed by 'ਦ'.

Yet, this is failing for me:
WHERE CONCAT(' ', REPLACE(`Scripture`, ',', ' ')) RLIKE
' ਦ[[:alpha:]]* +ਦ[[:alpha:]]* +ਦ'

Suggest filing a bug at http://bugs.mysql.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to search based on first LETTER of consecutive words
2097
April 28, 2013 09:16PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.