| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- -- 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)
- **/
- ;
|