我正在尝试为我们的一个drupal开发人员设置一个旧版本的Solr。显然,只有版本1.x或3.x可以与当前版本的drupal一起使用。
我在tomcat下设置solr 3.4.2。
我有索尔住在/opt:
# ls -ld /opt/solr
lrwxrwxrwx. 1 root root 17 May 6 12:48 /opt/solr -> apache-solr-3.6.2我的核心在这里:
# ls -ld /opt/solr/admin/cores
drwxr-xr-x. 3 root root 4096 May 6 14:37 /opt/solr/admin/cores到目前为止只有一个核心,直到我能让它工作。
# ls -l /opt/solr/admin/cores/
total 4
drwxr-xr-x. 5 root root 4096 May 6 14:08 collection1我将这个作为我的solr.xml文件:
<solr persistent="false"
<cores adminPath="/admin/cores" defaultCoreName="collection1">
<core name="collection1" instanceDir="collection1" />
</cores>
</solr>它位于这两个地方:
# ls -l /opt/solr/solr.xml /usr/local/tomcat/conf/Catalina/solr.xml
-rw-r--r--. 1 root root 169 May 6 14:38 /opt/solr/solr.xml
-rw-r--r--. 1 root root 169 May 6 14:38 /usr/local/tomcat/conf/Catalina/solr.xml以下是我的/opt/solr目录中的内容
# ls -l /opt/solr/
total 436
drwxr-xr-x. 3 root root 4096 May 6 14:37 admin
-rw-r--r--. 1 root root 176647 Dec 18 2012 CHANGES.txt
drwxr-xr-x. 3 root root 4096 May 6 12:48 client
drwxr-xr-x. 9 root root 4096 Dec 18 2012 contrib
drwxr-xr-x. 3 root root 4096 May 6 12:48 dist
drwxr-xr-x. 3 root root 4096 May 6 12:48 docs
-rw-r--r--. 1 root root 1274 May 6 13:28 elevate.xml
drwxr-xr-x. 11 root root 4096 May 6 12:48 example
-rw-r--r--. 1 root root 81331 Dec 18 2012 LICENSE.txt
-rw-r--r--. 1 root root 20828 Dec 18 2012 NOTICE.txt
-rw-r--r--. 1 root root 5270 Dec 18 2012 README.txt
-rw-r--r--. 1 root root 55644 May 6 13:27 schema.xml
-rw-r--r--. 1 root root 60884 May 6 13:27 solrconfig.xml
-rw-r--r--. 1 root root 169 May 6 14:38 solr.xml然而,当我弹出tomcat时,这是我得到的结果:
HTTP Status 404 - missing core name in path
type Status report
message missing core name in path
description The requested resource is not available.谁能告诉我我哪里做错了?
谢谢!!
发布于 2015-05-07 13:42:07
您的搜索服务器似乎使用了多核设置。在这种情况下,您需要您的核心名称作为URL的一部分。
例如,代替请求
http://localhost:8983/solr/select/?q=text 你必须请求
http://localhost:8983/solr/yourCoreName/select/?q=text请检查您的WEB-INF/web.xml中是否定义了solr home。
查看这个类似的问题,找到一些相似和不同的解决方案。
HTTP ERROR: 404 missing core name in path with solr
Getting "missing core name in path" when trying to access Solr admin installed on Glassfish
https://stackoverflow.com/questions/30085163
复制相似问题