这是sphinx.conf 的内容
source src1
{
<code> type = mysql
sql_host = localhost
sql_user = root
sql_pass = 1goodlusslulU
sql_db = fangxinjia_sku
sql_port = 3306 # optional, default is 3306
sql_query_pre = SET NAMES utf8
# sql_query_pre = SET SESSION query_cache_type=OFF
sql_query = \
SELECT product_attribute_id,product_name \
FROM product_attribute
sql_attr_uint = product_attribute_id
sql_attr_string = product_name</code>}
这是我建立索引的命令 /usr/local/sphinx/bin/indexer --config /usr/local/sphinx/etc/sphinx.conf --all
执行完 一直是这个结果,
Piwik是一套基于Php+MySQL技术构建的开源网站访问统计系统,前身是phpMyVisites。Piwik 网站统计系统可以给你详细的统计信息,比如网页 浏览人数, 访问最多的页面, 搜索引擎关键词等等,并且采用了大量的AJAX/Flash技术,使得在操作上更加便易。此外,它还采用了插件扩展及开放API架构,可以让开发人员根据 自已的实际需求创建更多的功能。
97
Sphinx 2.2.10-id64-release (2c212e0)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/usr/local/sphinx/etc/sphinx.conf'...
skipping non-plain index 'product_attribute'...
total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
求教有什么问题,感谢
mysql库中有文件,索引执行命运也没有报错,但就是没数据
这是sphinx.conf 的内容
source src1
{
<code> type = mysql
sql_host = localhost
sql_user = root
sql_pass = 1goodlusslulU
sql_db = fangxinjia_sku
sql_port = 3306 # optional, default is 3306
sql_query_pre = SET NAMES utf8
# sql_query_pre = SET SESSION query_cache_type=OFF
sql_query = \
SELECT product_attribute_id,product_name \
FROM product_attribute
sql_attr_uint = product_attribute_id
sql_attr_string = product_name</code>}
这是我建立索引的命令 /usr/local/sphinx/bin/indexer --config /usr/local/sphinx/etc/sphinx.conf --all
执行完 一直是这个结果,
Sphinx 2.2.10-id64-release (2c212e0)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/usr/local/sphinx/etc/sphinx.conf'...
skipping non-plain index 'product_attribute'...
total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
求教有什么问题,感谢
mysql库中有文件,索引执行命运也没有报错,但就是没数据
没有配置index
index src1 {
<code>source src1; …</code>
}
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号