Currently, in the VSCode plugin, I only check if the user's search keywords contain Chinese characters. If they do, the string is segmented using Jieba and then joined into a new search string with spaces. For example, searching for 中华人民共和国武汉市长江大桥 would become 中华 华人 人民 共和 共和国 中华人民共和国 武汉 武汉市 长江 大桥 长江大桥.

Relevant code

if (!value.includes(':') && /[\u4E00-\u9FFF]/.test(value)) {
  value = cut_for_search(value, true).join(' ')
  logger.info(`chinese search value: ${value}`)
}

Yes, that would be fine, but I think the problem is how to integrate it with the existing search? Do you know how that could be done?

However, yes, I am not very familiar with where or how to modify Joplin's search-related code.