MySql Full Index search not working -



MySql Full Index search not working -

i set illustration code here

http://sqlfiddle.com/#!2/6aa9ec/1

below mentioned db query used searching word samsung not working

select `idrequest`, `user_name`, `idcategory`, `title`, `description`, `image_url1`, `image_url2`, `image_url3`, `post_date` `requests` match (`title`,`description`) against('samsung')

you can utilize boolean full-text searches

select `idrequest`, `user_name`, `idcategory`, `title`, `description`, `image_url1`, `image_url2`, `image_url3`, `post_date` `requests` match (`title`,`description`) against('+samsung' in boolean mode)

according docs

mysql can perform boolean full-text searches using in boolean mode modifier. modifier, characters have special meaning @ origin or end of words in search string. in next query, + operator indicate word required present, respectively, match occur.

demo

mysql full-text-search

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -