获取“路径中缺少核心名称"尝试访问安装在 Glassfish 上的 Solr 管理员时 [英] Getting "missing core name in path" when trying to access Solr admin installed on Glassfish

查看:21
本文介绍了获取“路径中缺少核心名称"尝试访问安装在 Glassfish 上的 Solr 管理员时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Glassfish 上安装了 Solr 3.1,这部分顺利通过,当我访问>:>/solr 时,我得到欢迎来到 Solr!"页面,以及Solr Admin"链接.

I've installed Solr 3.1 on Glassfish, and that part passed smoothly, as when I visit<host>:<port>/solr, I get that "Welcome to Solr!" page, along with "Solr Admin" link.

当我尝试使用管理面板时出现问题,我收到HTTP 状态 404 - 路径中缺少核心名称".我不知道为什么会这样.以前,我一直在 localhost 上测试默认的 Solr 示例(单核),但使用 Jetty,以 start.jar 的形式随 Solr 版本一起发布.

Problems start when I try to opet admin panel, I get "HTTP Status 404 - missing core name in path". I have no clue why is that happening. Previously, I've been testing that default Solr example (single core) at localhost, but using Jetty, shipped with Solr release in form of that start.jar.

我已将系统属性 solr.solr.home 设置为指向 solr.xmlconf 文件夹所在的文件夹,这是提到的 solr.xml 的内容:

I've set system property solr.solr.home to point to the folder where solr.xml and conf folder is located, and here's the content of mentioned solr.xml:

<solr persistent="false"
  <cores adminPath="/admin/cores" defaultCoreName="collection1">
    <core name="collection1" instanceDir="." />
  </cores>
</solr>

如您所见,只是简单的单核设置.

As you can see, just simple single core setup.

有什么想法吗?

提前致谢

推荐答案

<solr persistent="false"<cores adminPath="/admin/cores" defaultCoreName="collection1"><core name="collection1" instanceDir="collection1"/></核心></solr>

和目录结构:

collection1(包含目录、配置和数据)
solr.xml

collection1 (containing dirs, conf and data)
solr.xml

是正确的方法.

这篇关于获取“路径中缺少核心名称"尝试访问安装在 Glassfish 上的 Solr 管理员时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆