Solr返回错误#404 Not Found for url http:// localhost:8983 / solr / update?commit = true

时间:2013-06-05 10:20:06

标签: solr

当我将xml数据导入我的Solr(v4.3.0)时出现上述错误,我刚刚更改了我的集合名称,与示例文件没什么不同。

有什么建议吗?

提前致谢。

3 个答案:

答案 0 :(得分:15)

尝试访问以下网址:IP:PORT / solr / NAME_OF_YOUR_CORE / update?commit = true

答案 1 :(得分:2)

我正在使用带有Rails的Solr 4.2.0,默认情况下没有设置任何集合。但默认设置了3个内核(默认,开发,测试)。所以我不得不在我的solr配置中为sunspot设置:url,在路径中包含核心名称,就像这样......

http://localhost:8982/solr/development/update?commit=true

请注意您使用的是正确的端口(8981,8982,8983)

development:
  solr:
    hostname: localhost
    port: 8982
    log_level: INFO
    path: /solr
    url: http://localhost:8982/solr/development

答案 2 :(得分:0)

核心名称区分大小写,请确保正确编写。这是我的问题。

因此,如果您的核心名称是MyCore,则网址必须为:

http://localhost:8983/solr/MyCore/update

而不是,例如,http://localhost:8983/solr/mycore/update

相关问题