Solr更改架构

问题描述 投票:1回答:1

我正在运行Solr 4.1,我需要更改我的架构。我修改了模式文件,但它似乎没有获取更改的模式。我甚至重新启动了我的服务器。

另外,我如何看待我的计划?我试着做curl http://localhost:1080/Mark/names/schema?wt=json而且我得到了

The origin server did not find a current representation 
for the target resource or is not willing to disclose that one exists.

我可以卷曲相同的端点并获得一个文档就好了。

如何让Solr获取新架构?

solr solr4
1个回答
0
投票

我的代码中有一个错误,它正在索引数据。我正在设置新字段的值,但我没有意识到还有另一种方法深埋在肠道中:)将其剥离。

事实证明,Solr接受了更改,我只是没有为它发送数据。

© www.soinside.com 2019 - 2024. All rights reserved.