Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Apache Solr和Magento Enterprise之间的通信出现问题-仅限“;pings";在Solr日志中_Php_Apache_Magento_Solr - Fatal编程技术网

Php Apache Solr和Magento Enterprise之间的通信出现问题-仅限“;pings";在Solr日志中

Php Apache Solr和Magento Enterprise之间的通信出现问题-仅限“;pings";在Solr日志中,php,apache,magento,solr,Php,Apache,Magento,Solr,我最近设置了一个ApacheSolr1.4.1服务器来与MagentoEnterprise1.9配合使用 安装似乎工作正常,Magento报告它可以成功连接到Solr 我可以在Solr接口中执行Solr查询,看起来Magento数据已经被Solr成功索引 然而。。。当我通过Magento进行搜索时,它似乎不是从Solr获取搜索结果,而是像往常一样从Magento的MySQL数据库获取搜索结果 这不应该发生,因为目录搜索引擎在Magento中肯定设置为Solr 当我通过Solr admin界面运行

我最近设置了一个ApacheSolr1.4.1服务器来与MagentoEnterprise1.9配合使用

安装似乎工作正常,Magento报告它可以成功连接到Solr

我可以在Solr接口中执行Solr查询,看起来Magento数据已经被Solr成功索引

然而。。。当我通过Magento进行搜索时,它似乎不是从Solr获取搜索结果,而是像往常一样从Magento的MySQL数据库获取搜索结果

这不应该发生,因为目录搜索引擎在Magento中肯定设置为Solr

当我通过Solr admin界面运行查询时,Solr日志文件显示:

[09/05/2013:05:54:48+0000]“GET/solr/select/?q=fulltext1\u en%3 HTTP/1.1“200 33594上的shirt&version=2.2&start=0&rows=10&indent=

当我通过我的Magento商店搜索时,我只得到以下信息:

[09/05/2013:05:54:32+0000]“HEAD/solr/admin/ping HTTP/1.0”200 0

所以在我看来,Magento只是在“ping”Solr,而不是实际发送查询数据

我在php.ini中启用了
allow\u url\u fopen=On
,以排除这种情况


有什么想法吗?

我首先检查文件
var/log/exception.log
中的条目

假设您在Solr日志中看到的
ping
是由适当的类执行的ping,即

Enterprise_Search_Model_Adapter_HttpStream::_search()    // or
Enterprise_Search_Model_Adapter_PhpExtension::_search()
如果ping之后出现故障,您应该找到日志条目,因为
catch
语句记录了日志