Configuration Solr配置问题——Solr正在运行但没有索引

Configuration Solr配置问题——Solr正在运行但没有索引,configuration,solr,Configuration,Solr,我刚刚开始使用Solr,从Tomcat6运行它。我遵循了所有的安装说明,webapp似乎运行良好。我使用curl发送solr启动示例中的示例数据,当某个内容成功索引时,服务器似乎会返回它应该返回的内容: <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"><int name="status">0</int><int name="Q

我刚刚开始使用Solr,从Tomcat6运行它。我遵循了所有的安装说明,webapp似乎运行良好。我使用curl发送solr启动示例中的示例数据,当某个内容成功索引时,服务器似乎会返回它应该返回的内容:

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">4</int></lst>
</response>
我对这一行很好奇:readerDir:org.apache.lucene.store.NIOFSDirectory@/home/tomcat6/solr/data/index

由于这在服务器上不存在,我的索引位于/home/myhome/solr/data/index

我通过webapps web.xml env标记配置了solr home。并且在主管理屏幕中显示正确的主页

有没有办法让我的索引正常工作

提前谢谢


--dm

您可能忘记提交新文档,例如在添加以下内容后:

curl http://localhost:8983/solr/update -F stream.body=' <commit />'
curlhttp://localhost:8983/solr/update -F stream.body=''
curl http://localhost:8983/solr/update -F stream.body=' <commit />'