SELECT `id`, `name`, `frontCover`, `type`, `category`, `user`, `author`, `MRP`, `sellingPrice`, `isNew`, `isRaw`, `binding`, `publisherName`, `publicationYear`, (MATCH name,author AGAINST ("made easy editorial board" IN BOOLEAN MODE)) AS relevance FROM `books` WHERE LOWER(type) = 'college' AND (MATCH name,author AGAINST ('made easy editorial board' IN BOOLEAN MODE)) AND `status` = 1 ORDER BY `relevance` DESC
当试图运行查询时,它给我错误
# 1191 - Can't find FULLTEXT index matching the column list
我已经添加了name和author全文索引。但当我运行单列时,它就工作了。我需要从两列匹配结果得到。
1条答案
按热度按时间plicqrtu1#
在查询中使用这两列时,需要在这两列上使用一个组合的全文索引。