0

I added SOLR to my existing webapp. When I query the SOLR data from the browser it is returning zero records (this is expected since there is nothing there). But when I try to add documents using HttpSolrServer no indexes are created and no exceptions are thrown. When I request update url from a browser it looks good.

Every time I run my program to create indexes a write.lock file is created in my solr data folder but again no indexes created.

Joe
  • 46,419
  • 33
  • 155
  • 245
SBB
  • 17
  • 1
  • 8
  • Showing your code will increase the likelihood of a helpful response. Also, please clarify "When I request update url from a browser it looks good." -- does this mean you are seeing the data? – eebbesen Dec 06 '13 at 18:49
  • Also, what platform is the server running on? – disrvptor Dec 06 '13 at 19:00
  • this is what i mean url: protocol://host:port/solrtest-1.0.0/update?commit=true and response is - - 0 33 i am running it in my local machine windows 8 tomcat 6 – SBB Dec 06 '13 at 19:21
  • write.lock file gets created when i run the above update url also and gets deleted automatically when i shutdown tomcat.. – SBB Dec 06 '13 at 19:33
  • my code SolrServer solrServer = new HttpSolrServer(server); SolrInputDocument doc = new SolrInputDocument(); doc.addField("id", someID); . . . . solrServer.add(doc); solrServer.commit(); and this was working fine with solr3.3, i just updagraded to 4.0 made necessary changes in solrconfig.xml and schema.xml – SBB Dec 06 '13 at 19:50
  • Hi problem resolved some where in my code i am accidentally overriding my solr home by writing...system.setproperty... working fine after commenting that... thanks much for your responses.. – SBB Dec 06 '13 at 20:35

0 Answers0