美好的一天,

我已经用Typo3提供的install-solr.sh在Debian服务器上安装了Solr 4.8。在脚本之后,我向solr.xml添加了一些额外的内核,并且管理界面显示了它们正在运行。

问题是,Typo3需要一个URL(路径)来连接到solr。他们在互联网上的每个地方都说http://{host}:{port}/solr/{core}。每当我将其放入浏览器(http://{host}:8080/solr/don_nl/)时,它将显示404。

配置solr时我忘了什么吗?

内容solr.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="false">
    <cores adminPath="/admin/cores">
        <core name="core_en" instanceDir="typo3cores" schema="english/schema.xml" dataDir="data/core_en" />
        <core name="core_nl" instanceDir="typo3cores" schema="dutch/schema.xml" dataDir="data/core_nl" />
        <core name="core_de" instanceDir="typo3cores" schema="dutch/schema.xml" dataDir="data/core_de" />
        <core name="don_nl" instanceDir="typo3cores" schema="dutch/schema.xml" dataDir="data/don_nl" />
        <core name="wow_nl" instanceDir="typo3cores" schema="dutch/schema.xml" dataDir="data/wow_nl" />
    </cores>
</solr>


编辑

每当我转到:http://{host}:8080/solr/don_nl/select/?q=*%3A*时,都会收到以下响应。

{
  "responseHeader":{
    "status":0,
    "QTime":31,
    "params":{
      "q":"*:*"}},
  "response":{"numFound":0,"start":0,"docs":[]
  }}


Typo3 Solr配置:

plugin.tx_solr {
    solr {
            scheme = http
            host = **********
            port = 8080
            path = /solr/don_nl/
        }


这就是结果(在报告中)。

java - Solr核心URL/Typo3-LMLPHP

最佳答案

您从http://{host}:8080/solr/don_nl/select/?q=*%3A*获得的响应似乎还可以,因此(don_nl核心的)Solr URL为http://{host}:8080/solr/don_nl-但是在核心的URL中看不到任何内容,因为它只是一个基础用于核心的其他服务。但是您可以将其用于Typo3配置。

如果要查看Solr GUI,请转到http://{host}:8080/solr/

10-07 19:42
查看更多