gpt4 book ai didi

php - 如何在 YII 中使用 Sphinx 搜索?

转载 作者:行者123 更新时间:2023-11-29 13:41:10 24 4
gpt4 key购买 nike

我的网络应用程序有全文搜索..我找到了这个扩展并将其安装到我的应用程序中...

http://www.yiiframework.com/extension/dgsphinxsearch/

(DGSphinx搜索扩展)

在 main.php 中我包含了这个,

'search' => array(
'class' => 'application.components.DGSphinxSearch',
'server' => '127.0.0.1',
'port' => 9312,
'maxQueryTime' => 3000,
'enableProfiling'=>0,
'enableResultTrace'=>0,
'fieldWeights' => array(
'name' => 10000,
'keywords' => 100,
),
),
<小时/>

现在我不知道如何使用它...你们能给我一个如何使用它的例子吗?

我想从描述中搜索项目...

ITEM TABLE
id
code
description

请帮助我...

最佳答案

您需要重新索引所有方法:

indexer.exe --rotate --config c:\sphinx\bin\sphinx.conf --all

并重新启动“SphinxSearch”服务。

谢谢。

关于php - 如何在 YII 中使用 Sphinx 搜索?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18058606/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com