valeriansaliou / sonic

🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.
https://crates.io/crates/sonic-server
Mozilla Public License 2.0
20.11k stars 578 forks source link

can not push chinese #307

Closed HollisMeynell closed 11 months ago

HollisMeynell commented 1 year ago

"zho" is language codes chinese in iso 639-3

image

PUSH messages default 1 "你好" LANG(zho)
ERR invalid_meta_value(LANG[zho])

PUSH messages default 2 "Hello" LANG(eng)
OK

lexing system doesn't work when ignoring argument "LANG"

how to use it correctly

n0099 commented 1 year ago

zho is the macro lang which representing all written languages that using chinese character, so u need a more specified individual lang such as cmn as the chinese mandarin

from https://en.wikipedia.org/wiki/ISO_639_macrolanguage:

For example, Chinese is a macrolanguage encompassing many languages that are not mutually intelligible

csh0101 commented 11 months ago

@HollisMeynell please close this . if the suggestion is usefule.