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

xunsearch 太多字段搜索起来特别慢,该怎么设计配置文件

  •  
  •   alwayshere · 2017-11-23 20:15:35 +08:00 · 1730 次点击
    这是一个创建于 2352 天前的主题,其中的信息可能已经有所发展或是发生改变。

    目前网站翻译成了二十多种语言,50 多万行数据,用 xunsearch 作为全文检索,ini 配置文件如下:

    [zh]

    type = string

    index = mixed

    tokenizer = split(|)

    [ru]

    type = string

    index = mixed

    tokenizer = split(|)

    [ja]

    type = string

    index = mixed

    tokenizer = split(|)

    [de]

    type = string

    index = mixed

    tokenizer = split(|)

    [es]

    type = string

    index = mixed

    tokenizer = split(|)

    [fr]

    type = string

    index = mixed

    tokenizer = split(|) .

    .

    .

    .

    .

    .( 26 种语言都这样)

    搜索一个词无论是中文还是英文,平均 query 时间都是 15~16 秒,服务器配置是:i5+16G+2T HDD,虽然是机械盘,但是无论如何也不至于十多秒的查询时间呀,求 V 友该咋办

    1 条回复    2017-11-23 20:37:36 +08:00
    dobelee
        1
    dobelee  
       2017-11-23 20:37:36 +08:00 via Android
    换 es。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1052 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 18:02 · PVG 02:02 · LAX 11:02 · JFK 14:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.