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

2017-11-23 20:15:35 +08:00
 alwayshere

目前网站翻译成了二十多种语言,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 友该咋办

1747 次点击
所在节点    程序员
1 条回复
dobelee
2017-11-23 20:37:36 +08:00
换 es。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/409018

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX