安装sphinx 搜索引擎(google) Installing sphinx on Linux Extract everything from the distribution tarball (haven't you already?) and go to the sphinx subdirectory: $ tar xzvf sphinx-0.9.8.tar.gz $ cd sphinx Run the configuration program: $ ./configure Error 不能找到mysql-devel,需要手工安装mysql-devel包 ./configure --with-mysql yum --list |grep mysql-devel yum install mysql-devel.i58...
为什么创建索引会无数据 [root@WAN ~]# indexer -c /etc/sphinx/sphinx.conf article sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff using config file '/etc/sphinx/sphinx.conf'... indexing index 'article'... collected 6 docs, 0.0 MB sorted 0.0 Mhits, 100.0% done total 6 docs, 354 bytes total 0.008 sec, 40401 bytes/sec, 684.77 docs/sec total 2 reads, 0.000 sec, 0.6 kb/call avg, ...
我把我blog的数据(中英文混合)导出, 作为数据来源, 来说明sphinx的使用.
准备数据源
导入数据:
sphinx在win上的安装 下载MYSQL5.0.27以上版本 http://dev.mysql.com 从sphinx官网上http://www.sphinxsearch.com/downloads.html下载sphinx-0.9.8-win32.zip 和mysql-5.0.45-sphinxse-0.9.8-win32.zip 先将mysql服务停掉 解压mysql-5.0.45-sphinxse-0.9.8-win32.zip 将bin和share覆盖掉 mysql目录中的bin和share 解压sphinx-0.9.8-win32.zip到独立的目录,如:d:/www/sphinx/中 在test数据库中新建测试表 CREATE TABLE `d...
错误信息: indexing index 'wp_main'... ERROR: index 'wp_main': column number 6 has no name. total 0 docs, 0 bytes total 0.001 sec, 0 bytes/sec, 0.00 docs/sec 我的配置如下: sql_port = 3306 sql_sock = /tmp/mysql.sock sql_query_pre = SET NAMES UTF8 sql_query_pre = CREATE TABLE IF NOT EXISTS cms_sph_counter ( counter_id INTEGER PRIMARY K...
搞了N年的Perl,临了需要PHP,这就是社会现实,呵呵。 项目不太大,预算不太多,想在我这里练练手的欢迎。 大概7、8个动作,其实就是增删改物品,不过对于不同类的物品需要取得参数不同。 还有就是要建立全文索引以及查询,我知道有一个sphinx可以做全文索引,其他的也行。 感兴趣的跟我联系。 QQ: 17470927 [ 本帖最后由 福瑞哈哥 于 2008-7-4 17:50 编辑 ]