
-- text支持分词查询
select v_varchar, v_text from /test/basic where v_text='hello'
/**
output()
**/
;

-- 不存在的分词
select v_varchar, v_text from /test/basic where v_text='e'
/**
output()
**/
;

select v_varchar, v_text from /test/basic where v_text='*e*'
/**
output()
**/
;

-- lucene 对 text 类型 wildcard 的支持，分词通配
select v_varchar, v_text from /test/basic where v_text='e*'
/**
output()
**/
;

select v_varchar, v_text from /test/basic where v_text='*e'
/**
output()
**/
;

select v_varchar, v_text from /test/basic where v_varchar='\*a*'
/**
output()
count(1)
**/
;

select v_varchar, v_text from /test/basic2 where v_varchar='*c\*'
/**
output()
count(1)
**/
;

select v_varchar, v_text from /test/basic2 where v_varchar='a*'
/**
output()
count(0)
**/
;

select v_varchar, v_text from /test/basic2 where v_varchar='*a'
/**
output()
count(0)
**/
;
