sách gpt4 ai đã đi

yaml - cấu hình sphinx||cấu hình/sphinx.yml

In lại 作者:行者123 更新时间:2023-12-05 00:37:58 31 4
mua khóa gpt4 Nike

我的 sphinx 配置是:

================================ config/sphinx.yml
development:
bin_path: "/usr/local/bin"
searchd_binary_name: searchd
indexer_binary_name: indexer

但每次我运行 rake ts:index
Sphinx cannot be found on your system. You may need to configure the following
settings in your config/sphinx.yml file:
* bin_path
* searchd_binary_name
* indexer_binary_name

For more information, read the documentation:
For more information, read the documentation:
http://freelancing-god.github.com/ts/en/advanced_config.html
Generating Configuration to config/development.sphinx.conf
Sphinx 2.0.1-beta (r2792)
Copyright (c) 2001-2011, Andrew Aksyonoff
Copyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file 'config/development.sphinx.conf'...
indexing index 'post_core'...
collected 2 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 2 docs, 675 bytes
total 0.006 sec, 110510 bytes/sec, 327.43 docs/sec
skipping non-plain index 'post'...
total 6 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 12 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=19438).
Generating Configuration to config/development.sphinx.conf
Sphinx 2.0.1-beta (r2792)
Copyright (c) 2001-2011, Andrew Aksyonoff
Copyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file 'config/development.sphinx.conf'...
indexing index 'post_core'...
collected 2 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 2 docs, 675 bytes
total 0.006 sec, 105567 bytes/sec, 312.79 docs/sec
skipping non-plain index 'post'...
total 6 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 12 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=19438).

所以有什么问题?为什么 rake 输出即使安装了它也找不到它?

1 Câu trả lời

Thinking Sphinx 的警告肯定会更清楚……问题很可能是您的 Thinking Sphinx 版本有多旧。较旧的 TS 版本不了解 Sphinx 2.0.x - 因此我建议更新到最新版本的 Thinking Sphinx(Rails 1.2 和 2.x 为 1.4.6,Rails 3 为 2.0.5)。

关于yaml - sphinx 配置 ||配置/sphinx.yml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6394533/

31 4 0
Bài viết được đề xuất: aptana - eclim 可以与 aptana 集成吗?
Bài viết được đề xuất: powershell - 如何在 PowerShell 中使用 InsertAfter
Bài viết được đề xuất: debugging - Emacs中如何实现错误回溯?
Bài viết được đề xuất: XACML - 策略是否真的需要规则?
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com