V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
alwayshere
V2EX  ›  程序员

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

  •  
  •   alwayshere · Nov 23, 2017 · 2109 views
    This topic created in 3088 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   ·   5385 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 08:04 · PVG 16:04 · LAX 01:04 · JFK 04:04
    ♥ Do have faith in what you're doing.