V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kisshere
V2EX  ›  程序员

elasticsearch 多语言,到底是把每种语言存于一个 index 不同字段好,还是分散存于不同 index 好?

  •  
  •   kisshere · 2019-04-23 10:22:43 +08:00 via Android · 1641 次点击
    这是一个创建于 1830 天前的主题,其中的信息可能已经有所发展或是发生改变。

    方案一:

    所有语种存于同一个 index 和 type,每种语言各占用一个字段

    方案二:

    所有语种分散存于不同的 index

    上面哪种方案查询效率最快?

    flighter
        1
    flighter  
       2019-04-23 11:28:13 +08:00
    一个 index 多个 type
    springmarker
        2
    springmarker  
       2019-04-23 12:49:58 +08:00
    ES 要把 type 去掉了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2761 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:25 · PVG 23:25 · LAX 08:25 · JFK 11:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.