Problem in searching through Solr
I deployed solr.war in Tomcat server. its admin page running fine. But the problem is i am not getting the search results since there is no indexes ava开发者_运维问答ilable. i did what link http://wiki.apache.org/solr/SolrTomcat#Single_Solr_app says. but i am not getting when there is no data then how i will find the indexes.
Do you see any index at
http://yourserver:8080/solr/
Are you working on multicore? If so, in Tomcat you have to mention this:
“%SOLRPATH%\multicore”
links do not work in the comments... From the solr distribution, copy example/solr in your solr home /etc/tomcat6/solr. Make sure /var/data/solr owner is tomcat6:tomcat6. Then you need something like solrj to fill up the index. You can also use q csv file with curl like:
curl "http://localhost:8080/solr/fnac/update/csv?commit=true&separator=%7c&header=false&fieldnames=id,reference,ean13,title,desc,mark,cat,,,,,,,,,,,,,,,,,,,,,," --data-binary @marchand.csv -H 'Content-type:text/plain; charset=iso-8859-1'"
Also, some notes on solr:
http://swiss-knife.blogspot.com/search?q=solr
Edited on May 16th, 2011: On Tomcat, in catalina.sh, I do: JAVA_OPTS="-Dsolr.solr.home=/etc/tomcat6/solr -Djava.awt.headless=true -server -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
精彩评论