Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locale inferring is not quite accurate #322

Open
Catty2014 opened this issue Jul 16, 2024 · 0 comments
Open

Locale inferring is not quite accurate #322

Catty2014 opened this issue Jul 16, 2024 · 0 comments

Comments

@Catty2014
Copy link

Catty2014 commented Jul 16, 2024

With ingestion and queries below, sonic behaves incorrectly.
I think locale inferring is not quite accurate.(Only Chinese(cmn) and Japanese(jpn) are tested here.)
Ingestion commands:

START ingest SecretPassword
PUSH music name music1 "塞壬唱片-MSR DJ Okawari Stephanie - Your Star" LANG(cmn)
PUSH music name music2 "遥そら - 恋ひ恋ふ縁" LANG(jpn)
PUSH music name music3 "warma - 泛泛人类不会祈祷 人声本家" LANG(cmn)
PUSH music name music4 "心华 - 一人行者" LANG(cmn)
PUSH music name music5 "warma - 【翻唱】朝汐" LANG(cmn)
QUIT

Queries with response:

CONNECTED <sonic-server v1.4.9>
START search SecretPassword
STARTED search protocol(1) buffer(20000)
QUERY music name "warma 人类"
PENDING Mk6ornLf
EVENT QUERY Mk6ornLf 
QUERY music name "人类 warma"
PENDING aCsyd85d
EVENT QUERY aCsyd85d 
QUERY music name "ひ恋ふ そら"
PENDING 7g4XLmlD
EVENT QUERY 7g4XLmlD 
QUIT
ENDED quit

Correct behavior with explicit locale:

CONNECTED <sonic-server v1.4.9>
START search SecretPassword
STARTED search protocol(1) buffer(20000)
QUERY music name "warma 人类" LANG(cmn)
PENDING 7hxC95s3
EVENT QUERY 7hxC95s3 music3
QUERY music name "人类 warma" LANG(cmn)
PENDING 9jGco7ss
EVENT QUERY 9jGco7ss music3
QUERY music name "ひ恋ふ そら" LANG(jpn)
PENDING kv4ZPURE
EVENT QUERY kv4ZPURE music2
QUIT
ENDED quit

sonic version: v1.4.9 docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant