mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
fulltext.test, fulltext.result:
one simple trunc* test
This commit is contained in:
@ -134,6 +134,20 @@ Only MyISAM tables support collections
|
|||||||
Function MATCH ... AGAINST() is used to do a search
|
Function MATCH ... AGAINST() is used to do a search
|
||||||
some test foobar implements vector space model
|
some test foobar implements vector space model
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
create table t1 (a varchar(200) not null, fulltext (a));
|
||||||
|
insert t1 values ("aaa10 bbb20"), ("aaa20 bbb15"), ("aaa30 bbb10");
|
||||||
|
select * from t1 where match a against ("+aaa* +bbb*" in boolean mode);
|
||||||
|
a
|
||||||
|
aaa10 bbb20
|
||||||
|
aaa20 bbb15
|
||||||
|
aaa30 bbb10
|
||||||
|
select * from t1 where match a against ("+aaa* +bbb1*" in boolean mode);
|
||||||
|
a
|
||||||
|
aaa20 bbb15
|
||||||
|
aaa30 bbb10
|
||||||
|
select * from t1 where match a against ("+aaa* +ccc*" in boolean mode);
|
||||||
|
a
|
||||||
|
drop table t1;
|
||||||
CREATE TABLE t1 (
|
CREATE TABLE t1 (
|
||||||
id int(11),
|
id int(11),
|
||||||
ticket int(11),
|
ticket int(11),
|
||||||
|
@ -70,6 +70,16 @@ delete from t1 where MATCH(a,b) AGAINST ("indexes");
|
|||||||
select * from t1;
|
select * from t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# why to scan strings for trunc*
|
||||||
|
#
|
||||||
|
create table t1 (a varchar(200) not null, fulltext (a));
|
||||||
|
insert t1 values ("aaa10 bbb20"), ("aaa20 bbb15"), ("aaa30 bbb10");
|
||||||
|
select * from t1 where match a against ("+aaa* +bbb*" in boolean mode);
|
||||||
|
select * from t1 where match a against ("+aaa* +bbb1*" in boolean mode);
|
||||||
|
select * from t1 where match a against ("+aaa* +ccc*" in boolean mode);
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check bug reported by Matthias Urlichs
|
# Check bug reported by Matthias Urlichs
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user