[Rt-commit] rt branch, 4.2/mysql-native-fts, repushed
Alex Vandiver
alexmv at bestpractical.com
Wed Apr 30 12:50:12 EDT 2014
The branch 4.2/mysql-native-fts was deleted and repushed:
was efd15315798684a0ddda69cb462bcb69eb0e15b6
now 4807aea0114629c134b032af799934ed512cbc24
1: e27aeb8 = 1: e27aeb8 Add additional clarification points about Sphinx on MySQL
2: 097f466 = 2: 097f466 Rename Sphinx FTS search
3: 24157f2 ! 3: 4c78595 Support native FTS on MySQL 5.6 and above
@@ -151,11 +151,12 @@
}
+ elsif ( $db_type eq 'mysql' and not $config->{Sphinx}) {
+ my $dbh = $RT::Handle->dbh;
++ $value =~ s/["\\]+/ /g;
+ $self->Limit(
+ %rest,
+ FUNCTION => "MATCH($alias.Content)",
+ OPERATOR => 'AGAINST',
-+ VALUE => '('. $dbh->quote($value) .' IN NATURAL LANGUAGE MODE)',
++ VALUE => '("'. $dbh->quote($value) .'" IN BOOLEAN MODE)',
+ QUOTEVALUE => 0,
+ );
+ }
4: efd1531 ! 4: 4807aea Using a separate MyISAM table, we can also support FTS on MySQL < 5.6
@@ -39,11 +39,6 @@
+InnoDB performance, not MyISAM performance. Once the MySQL server is
+upgraded to version 5.6 or above, the extra table should be re-created
+as InnoDB by re-running the steps above.
-+
-+Additionally, MyISAM full-text search does not return results if the
-+matches comprise more than half of the total rows. This may lead to
-+false negatives when conducting very small tests, or if searching for
-+words which are extremely common in your data.
+
=head2 MySQL with Sphinx
More information about the rt-commit
mailing list