2
# Fulltext configurable parameters
5
drop table if exists t1;
8
# Save ft_boolean_syntax variable
9
let $saved_ft_boolean_syntax=`select @@global.ft_boolean_syntax`;
11
show variables like "ft\_%";
13
create table t1 (b text not null);
14
insert t1 values ('aaaaaa bbbbbb cccccc');
15
insert t1 values ('bbbbbb cccccc');
16
insert t1 values ('aaaaaa cccccc');
17
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
19
set ft_boolean_syntax=' +-><()~*:""&|';
20
set global ft_boolean_syntax=' +-><()~*:""&|';
21
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
22
set global ft_boolean_syntax='@ -><()~*:""&|';
23
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
24
select * from t1 where match b against ('+aaaaaa @bbbbbb' in boolean mode);
26
set global ft_boolean_syntax='@ -><()~*:""@|';
28
set global ft_boolean_syntax='+ -><()~*:""@!|';
31
# Restore ft_boolean_syntax variable
33
eval set global ft_boolean_syntax='$saved_ft_boolean_syntax';