2011-04-20 22 views
0

我剛剛開始使用Solr,從Tomcat6運行它。我遵循所有安裝說明,並且webapp似乎運行良好。我用捲曲從Solr的啓動例如發送樣本數據,並且服務器彷彿回到什麼是應該當成才成功收錄到:Solr配置Woes - solr運行但不索引

<?xml version="1.0" encoding="UTF-8"?> 
<response> 
<lst name="responseHeader"><int name="status">0</int><int name="QTime">4</int></lst> 
</response> 

但是,當我通過管理來檢查索引/ stats接口,沒有任何東西進入索引。它甚至沒有重新註冊請求?

searcherName : [email protected] main 
caching : true 
numDocs : 0 
maxDoc : 0 
reader : SolrIndexReader{this=ec5aba9,[email protected],refCnt=1,segments=0} 
readerDir : [email protected]/home/tomcat6/solr/data/index 
indexVersion : 1266212874907 
openedAt : Fri Apr 15 13:46:52 EDT 2011 
registeredAt : Fri Apr 15 13:46:52 EDT 2011 
warmupTime : 0 

我在這一行真的很好奇:readerDir:[email protected]/home/tomcat6/solr/data/index

因爲這並不存在於服務器上,我的索引位於/ home/myhome/solr/data/index

我通過webapps web.xml env標籤配置了solr home。並且正確的主頁顯示在主管理屏幕上

任何想法如何讓我的索引工作?

提前致謝。

--dm

回答

0

你可能忘了提交新文件,例如加入後:

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