Solr搜索建议
我已经在Tomcat上安装了Solr服务器,并且基本工作正常-但我根本无法获得任何建议或建议。(Magento Enterprise 1.14.01和Solr 3.6.2) 如果我使用从Magento发送到Solr的GET字符串并在浏览器中运行它,我会看到基本结果-但没有任何建议。 但是,如果我从Tomcat看日志,则Solr服务器正在处理,并且知道应该返回的建议...但是它们不会在响应json中发送回去。 例: 我发给Solr的东西 http://dev.samplesite.com:8080/solr/select?sort=score+desc&stats=true&stats.field=price_0_1&qt=magento_en&fq=%28visibility%3A3+OR+visibility%3A4%29+AND+store_id%3A1&version=1.2&wt=json&json.nl=map&q=bluu&start=0&rows=0 我从Solr得到的回报 {"responseHeader":{"status":0,"QTime":185,"params":{"sort":"score desc","start":"0","stats.field":"price_0_1","stats":"true","q":"bluu","json.nl":"map","qt":"magento_en","wt":"json","fq":"(visibility:3 OR visibility:4) AND store_id:1","rows":"0","version":"1.2"}},"response":{"numFound":0,"start":0,"docs":[]},"stats":{"stats_fields":{"price_0_1":null}}} 但是在Solr日志中,我看到这两行 Jun 02, 2014 8:49:09 PM org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={sort=score+desc&json.nl=map&wt=json&rows=1&version=1.2&fl=id&start=0&q=blue&qt=magento_en&fq=(visibility:3+OR+visibility:4)+AND+store_id:1} hits=1405 status=0 QTime=1 Jun 02, 2014 8:49:09 PM org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={sort=score+desc&json.nl=map&wt=json&rows=1&version=1.2&fl=id&start=0&q=bleu&qt=magento_en&fq=(visibility:3+OR+visibility:4)+AND+store_id:1} hits=1 status=0 QTime=8 Solr清楚地知道“ blue”具有1405个结果,而“ bleu”具有1个结果...这对于我们的目录是准确的-但某些方面使这些建议无法通过JSON字符串发送回Magento …