full text search - FULLTEXT MYSQL Query -


i'm trying make fulltext query , encountering error.

below query:

select `o`.`fruits_id`  `fruits` `o` join `fruits_categories` `oc` on `o`.`fruits_id` = `oc`.`fruits_id`  join `categories` `c` on `c`.`cat_id` = `oc`.`cat_id`  join `fruits_location` `ol` on `o`.`fruits_id` = `ol`.`fruits_id`  join `location` `l` on `l`.`location_id` = `ol`.`location_id`  join `fruits_price` `op` on `o`.`fruits_id` = `op`.`fruits_id`  join `price` `p` on `p`.`price_id` = `op`.`price_id`  ( (match (o.fruits_name, o.fruits_description, o.address, o.instagram_tag) against ('apple') or match (c.cat_name) against ('apple') or match (l.location_name) against ('apple') or match (p.price_name) against ('apple') )  , (match (o.fruits_name, o.fruits_description, o.address, o.instagram_tag) against ('orange') or match (c.cat_name) against ('orange') or match (l.location_name) against ('orange') or match (p.price_name) against ('orange') ) )  

on tables have:

fruits

fulltext key `fruits_name` (`fruits_name`), fulltext key `fruits_description` (`fruits_description`), fulltext key `address` (`address`), fulltext key `instagram_tag` (`instagram_tag`) 

categories

fulltext key `cat_name` (`cat_name`) 

location

fulltext key `location_name` (`location_name`) 

price

fulltext key `price_name` (`price_name`) 

and i'm getting error:

can't find fulltext index matching column list 

the problem indexed fields separately in fruits table, try search them in combined way in query! drop existing fulltext indexes in fruit table , create new composite index on 4 fields.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -