yxzblue
0.01D
V2EX  ›  问与答

搜索关键字即时下拉框 一般可以用什么后端技术实现

  •  
  •   yxzblue · Jun 13, 2015 · 3321 views
    This topic created in 4032 days ago, the information mentioned may be changed or developed.

    不是说前端展示的下拉框。而是指后端技术,是怎样迅速检索出需要的条目的?

    4 replies    2015-06-13 09:04:27 +08:00
    wklken
        1
    wklken  
       Jun 13, 2015
    trie树 https://github.com/wklken/suggestion
    词少的话, 将词拆了暴力存到redis里面......
    yxzblue
        3
    yxzblue  
    OP
       Jun 13, 2015
    @wklken 词多呢?
    yxzblue
        4
    yxzblue  
    OP
       Jun 13, 2015
    几百万条吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1106 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 18:07 · PVG 02:07 · LAX 11:07 · JFK 14:07
    ♥ Do have faith in what you're doing.