ngram_len=1这个应该设置在哪里?
是创建表的时候设置,还是写在配置文件(manticore.conf)中
CREATE TABLE book (
title text,
auth text
) charset_table=‘cjk,non_cjk’ morphology=‘icu_chinese’ charset_type=‘utf-8’ ngram_len=‘1’ ngram_chars=‘U+3000…U+2FA1F’;
我这样创建表时,报错
ERROR 1064 (42000): error adding table ‘book’: ‘ngram_chars’: ngram characters must not be referenced anywhere else (code=U+3041)
我想创建表时,指定中文按单字拆分
Try:
charset_table=‘non_cjk’ charset_type=‘utf-8’ ngram_len=‘1’ ngram_chars=‘cjk’