duanlian1320 2013-08-05 12:49
浏览 19

如何使用YII进行Sphinx搜索?

My Webapp have full text search..and I found this extension & installed it to my app...

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

(DGSphinxSearch Extension)

In main.php I included this,

'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,
            ),
),

Now I have no idea how to use it... can you guys give me an example how to use it?

I want to search Items from description...

ITEM TABLE
id
code
description

Please help me...

  • 写回答

1条回答 默认 最新

  • douyinlai2169 2014-12-17 05:50
    关注

    You need to reindex all means:

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

    and restart "SphinxSearch" service.

    Thankx.

    评论

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line