mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
typo fixed
mysql-test/r/fulltext.result: new test mysql-test/t/fulltext.test: new test
This commit is contained in:
parent
c14e3edae9
commit
83ba8a138f
3 changed files with 5 additions and 1 deletions
|
@ -123,7 +123,7 @@ void _ftb_parse_query(FTB *ftb, byte **start, byte *end,
|
|||
ftbe->up=up;
|
||||
ftbe->ythresh=0;
|
||||
ftbe->docid=HA_POS_ERROR;
|
||||
if (ftbw->yesno > 0) up->ythresh++;
|
||||
if (ftbe->yesno > 0) up->ythresh++;
|
||||
_ftb_parse_query(ftb, start, end, ftbe, depth+1,
|
||||
(param.yesno<0 ? depth+1 : ndepth));
|
||||
break;
|
||||
|
|
|
@ -45,6 +45,9 @@ select * from t1 where MATCH(a,b) AGAINST("+search +(support vector)" IN BOOLEAN
|
|||
a b
|
||||
MySQL has now support for full-text search
|
||||
Full-text search in MySQL implements vector space model
|
||||
select * from t1 where MATCH(a,b) AGAINST("+search -(support vector)" IN BOOLEAN MODE);
|
||||
a b
|
||||
Function MATCH ... AGAINST() is used to do a search
|
||||
delete from t1 where a like "MySQL%";
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (
|
||||
|
|
|
@ -20,6 +20,7 @@ select * from t1 where MATCH(a,b) AGAINST("sear*" IN BOOLEAN MODE);
|
|||
select * from t1 where MATCH(a,b) AGAINST("+support +collections" IN BOOLEAN MODE);
|
||||
select * from t1 where MATCH(a,b) AGAINST("+search" IN BOOLEAN MODE);
|
||||
select * from t1 where MATCH(a,b) AGAINST("+search +(support vector)" IN BOOLEAN MODE);
|
||||
select * from t1 where MATCH(a,b) AGAINST("+search -(support vector)" IN BOOLEAN MODE);
|
||||
delete from t1 where a like "MySQL%";
|
||||
drop table t1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue