mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 09:42:07 +08:00
matched_count only counted cjk_words hits; pure ASCII queries had cjk_words=[] so matched_count=0 and all SQL-matched rows were filtered out. Change to count across all tokens (cjk_words + ascii_words) so the LIKE fallback works correctly when FTS5 is unavailable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>