• 请不要在回答技术问题时复制粘贴 AI 生成的内容
alwayshere
V2EX  ›  程序员

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

  •  
  •   alwayshere · Nov 23, 2017 · 2127 views
    This topic created in 3094 days ago, the information mentioned may be changed or developed.

    目前网站翻译成了二十多种语言,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 replies    2017-11-23 20:37:36 +08:00
    dobelee
        1
    dobelee  
       Nov 23, 2017 via Android
    换 es。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5814 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 96ms · UTC 01:55 · PVG 09:55 · LAX 18:55 · JFK 21:55
    ♥ Do have faith in what you're doing.