kylin-music/kylin-music-plugins-simple/example-jieba.sql

13 lines
888 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

select '';
select '';
select '--------------------------------------------------------------------------------';
select '使用jieba分词';
-- will match
select ' ', simple_highlight(t1, 0, '[', ']') from t1 where x match simple_query('国中woai');
select ' ', simple_highlight(t1, 0, '[', ']') from t1 where x match jieba_query('中国woai');
-- will not match, in jieba_query, the order matters
select ' !!!! should not match', simple_highlight(t1, 0, '[', ']') from t1 where x match simple_query('国中woai', 0);
select ' !!!! should not match', simple_highlight(t1, 0, '[', ']') from t1 where x match jieba_query('国中woai');
select ' !!!! should not match', simple_highlight(t1, 0, '[', ']') from t1 where x match jieba_query('中国woai', 0);
select ' !!!! should not match', simple_highlight(t1, 0, '[', ']') from t1 where x match jieba_query('aiwo', 0);