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

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

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