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

Using Chinese query plus summarize syntax, the characters are garbled:� #196

Open
yangliu0109 opened this issue Apr 18, 2024 · 2 comments

Comments

@yangliu0109
Copy link

=====================================code============================================

        Client redisSearchClient = new Client("ai_text", "127.0.0.1", 6379);
        Query query = new Query("测试");
        query.summarizeFields("F_Title", "F_Content");
        query.setLanguage("chinese");
        SearchResult search = redisSearchClient.search(query);
        System.out.println(search.docs.get(0).getString("F_Title"))

====================================consloe print==========================================

测试�...

=====================================env============================================

redislabs/redisearch:2.8.8
jredisearch:2.2.0

@bsbodden
Copy link
Contributor

@yangliu0109 you should use Jedis https://github.com/redis/jedis which replaces this (now deprecated library). Please try with Jedis first (https://github.com/redis/jedis/blob/master/docs/redisearch.md) and if you still have the same problem, open an issue in Jedis' repository.

@yangliu0109
Copy link
Author

I replaced it with Jedis: version 5.1.2 and it still appeared . I think I should go to the Jedis library and ask. Thank you and I wish you a happy day🎈

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

2 participants