如何使用带有 Rails 2.3.8 的 sphinx 搜索引擎来增加 mem_limit

发布于 2024-11-26 22:30:39 字数 454 浏览 0 评论 0原文

我正在使用 Rails 2.3.8 进行 sphinx 搜索,在重建索引时收到以下错误消息

indexing index 'model_core'...
collected 882974 docs, 755.7 MB
collected 959418 attr values
sorted 1.9 Mvalues, 100.0% done
**WARNING: sort_hits: merge_block_size=140 kb too low, increasing mem_limit may improve**

,这是我的配置文件,

sphinx.yml
development:
  port: 9316
test:
  port: 9314
production:
  port: 9312

请帮助我如何在 sphinx.yml 文件中进行配置?

I am using rails 2.3.8 with sphinx search, am getting the following error message while rebuilding the indexes

indexing index 'model_core'...
collected 882974 docs, 755.7 MB
collected 959418 attr values
sorted 1.9 Mvalues, 100.0% done
**WARNING: sort_hits: merge_block_size=140 kb too low, increasing mem_limit may improve**

here is my configuration file,

sphinx.yml
development:
  port: 9316
test:
  port: 9314
production:
  port: 9312

Please help me how to configure in sphinx.yml file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苍暮颜 2024-12-03 22:30:39
development:
  port: 9316
  mem_limit: 128M
test:
  port: 9314
  mem_limit: 128M
production:
  port: 9312
  mem_limit: 128M

在这里您可以获得有关它的更多信息: http://freelancing-god.github .com/ts/en/advanced_config.html

development:
  port: 9316
  mem_limit: 128M
test:
  port: 9314
  mem_limit: 128M
production:
  port: 9312
  mem_limit: 128M

Here you've got more info about it: http://freelancing-god.github.com/ts/en/advanced_config.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文