Home  >  Q&A  >  body text

nginx - How to automatically complete Chinese characters by inputting pinyin in the background

For example, communities across the country have a large amount of data and require real-time querying in the background

怪我咯怪我咯2713 days ago513

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 17:20:28

    It depends on the amount of data and how high your server configuration is.
    If the data is only tens of thousands, using redis should be able to meet the requirements.
    If the data exceeds 100,000, you can consider dividing it into different libraries (tables) according to the first letter of Pinyin, such as a-c, d-f, g-j, etc., and try to ensure that the search is within a small range

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 17:20:28

    This can be achieved using a library that converts pinyin to Chinese characters. Just like Baidu search, you enter pinyin and it will help you associate the Chinese character content

    reply
    0
  • Cancelreply