yxzblue
0.01D
V2EX  ›  问与答

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

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

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

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