2004-02-16 18:53:00 +01:00
|
|
|
drop table if exists t1;
|
2001-09-28 07:05:54 +02:00
|
|
|
show variables like "ft\_%";
|
2001-04-17 21:30:02 +02:00
|
|
|
Variable_name Value
|
2003-01-27 11:15:54 +01:00
|
|
|
ft_boolean_syntax + -><()~*:""&|
|
2003-12-04 23:18:04 +01:00
|
|
|
ft_max_word_len 84
|
2004-03-08 03:19:37 +01:00
|
|
|
ft_min_word_len 4
|
2003-10-23 15:21:06 +02:00
|
|
|
ft_query_expansion_limit 20
|
2003-01-27 12:12:12 +01:00
|
|
|
ft_stopword_file (built-in)
|
2004-02-16 18:53:00 +01:00
|
|
|
create table t1 (b text not null);
|
|
|
|
insert t1 values ('aaaaaa bbbbbb cccccc');
|
|
|
|
insert t1 values ('bbbbbb cccccc');
|
|
|
|
insert t1 values ('aaaaaa cccccc');
|
|
|
|
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
|
|
|
|
b
|
|
|
|
aaaaaa bbbbbb cccccc
|
|
|
|
aaaaaa cccccc
|
|
|
|
set ft_boolean_syntax=' +-><()~*:""&|';
|
|
|
|
ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBAL
|
|
|
|
set global ft_boolean_syntax=' +-><()~*:""&|';
|
|
|
|
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
|
|
|
|
b
|
|
|
|
aaaaaa bbbbbb cccccc
|
|
|
|
bbbbbb cccccc
|
|
|
|
set global ft_boolean_syntax='@ -><()~*:""&|';
|
|
|
|
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
|
|
|
|
b
|
|
|
|
aaaaaa bbbbbb cccccc
|
|
|
|
bbbbbb cccccc
|
|
|
|
aaaaaa cccccc
|
|
|
|
select * from t1 where match b against ('+aaaaaa @bbbbbb' in boolean mode);
|
|
|
|
b
|
|
|
|
aaaaaa bbbbbb cccccc
|
|
|
|
bbbbbb cccccc
|
|
|
|
set global ft_boolean_syntax='@ -><()~*:""@|';
|
|
|
|
ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of '@ -><()~*:""@|'
|
|
|
|
set global ft_boolean_syntax='+ -><()~*:""@!|';
|
|
|
|
ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of '+ -><()~*:""@!|'
|
|
|
|
drop table t1;
|