作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的网络应用程序有全文搜索..我找到了这个扩展并将其安装到我的应用程序中...
http://www.yiiframework.com/extension/dgsphinxsearch/
在 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/
我是一名优秀的程序员,十分优秀!