Sphinx::Search模块安装及使用
wget http://ftp.kaist.ac.kr/CPAN/modules/by-module/Sphinx/Sphinx-Search-0.22.tar.gz
tar zxvf Sphinx-Search-0.22.tar.gz
cd Sphinx-Search-0.22
perl Makefile.PL
make
make install
中间出现如下提示,装完后却可以使用。
Checking if your kit is complete...
Looks good
Warning: prerequisite Class::Accessor::Fast 0 not found.
Warning: prerequisite File::SearchPath 0 not found.
Warning: prerequisite Path::Class 0 not found.
Writing Makefile for Sphinx::Search
示例:
use Sphinx::Search;
$sphinx = Sphinx::Search->new();
$results = $sphinx->SetMatchMode(SPH_MATCH_ALL)
->SetSortMode(SPH_SORT_RELEVANCE)
->Query("search terms");
tar zxvf Sphinx-Search-0.22.tar.gz
cd Sphinx-Search-0.22
perl Makefile.PL
make
make install
中间出现如下提示,装完后却可以使用。
Checking if your kit is complete...
Looks good
Warning: prerequisite Class::Accessor::Fast 0 not found.
Warning: prerequisite File::SearchPath 0 not found.
Warning: prerequisite Path::Class 0 not found.
Writing Makefile for Sphinx::Search
示例:
use Sphinx::Search;
$sphinx = Sphinx::Search->new();
$results = $sphinx->SetMatchMode(SPH_MATCH_ALL)
->SetSortMode(SPH_SORT_RELEVANCE)
->Query("search terms");
此日志的引用通告 URL:
http://www.imx365.net/blog/tb.cgi/19479
其实我一直都不知道您在想些什么,有什么感触。说真的,您的评论对于我来说很重要...
还没有人评论过
发表评论

(访客)