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

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

问题描述

我已经在Glassfish上安装了Solr 3.1,并且该部分顺利通过,就像我访问< host >时:< port > / solr,我得到欢迎来到Solr!页面以及Solr Admin链接。

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



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

 < solr persistent =false
< / cores>
< / solr>

正如您所看到的,只需简单的单核设置即可。



任何想法?



预先感谢

解决方案

< solr persistent =false
< core name =collection1instanceDir =collection1/>
< / cores>
< / solr>



和一个目录结构:

collection1(包含dirs,conf和data)

solr.xml



是正确的方法。


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.

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.

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.

Any idea?

Thanks in advance

解决方案

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

and a directory structure of:

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

is the proper way to do it.

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

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