MySQL Forums
Forum List  »  Full-Text Search

Re: MariaDB and MATCH AGAINST Query
Posted by: Rick James
Date: August 02, 2016 06:16PM

The Engine makes a big difference. See http://mysql.rjweb.org/doc.php/myisam2innodb#fulltext

Also, what is the [searchterm] for which you got no results?

This:

(MATCH(b.title, b.shtext, b.lotext) AGAINST('[searchterm]'))
OR (b.title LIKE '%[searchterm]%' OR b.shtext LIKE '%[searchterm]%' OR b.lotext LIKE '%[searchterm]%')
)

does not make sense, since the MATCH should give a subset of the rows that the rest gives. Well, it could give a superset - if plurals are involved. In any case, it is quite redundant and very slow.

Options: ReplyQuote


Subject
Views
Written By
Posted
3475
August 01, 2016 08:30AM
Re: MariaDB and MATCH AGAINST Query
1392
August 02, 2016 06:16PM
1223
August 11, 2016 12:45AM
1231
August 11, 2016 06:34AM


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.