Yes, that's right, just make the path in the solr.xml is right, everything will be ok!
-----Original Message----- From: nithyavembu [mailto:[EMAIL PROTECTED] Sent: 2007年7月10日 18:28 To: solr-user@lucene.apache.org Subject: RE: Solr Server Configuration Hi, I tried as you said and got the result without any error. So we can make the solr home anywhere. But we have to give the path correctly in solr.xml. Am i correct? Now i am one step further.. :) Best, V.Nithya. Kijiji Xu, Ping wrote: > > I'm sorry I don't quite understand why you create a folder named solr in > tomcat/bin in your step 3 > The first of all ,you should understand this solr.xml file which I put in > tomcat/conf/Catalina/localhost/,its contents follows like this: > <Context docBase="/home/tomcat/webapps/solr.war" debug="0" > crossContext="true" > > <Environment name="solr/home" type="java.lang.String" > value="/home/solr" override="true" /> > </Context> > > When tomcat was start,tomcat will read this file,and then,tomcat know that > he should unzip the /home/tomcat/webapps/solr.war,deploy it ,you'll see a > folder named solr in the tomcat webapps folder when tomcat be started at > last. > And <Environment name="solr/home" type="java.lang.String" > value="/home/solr" override="true" /> means solr's home path is > /home/solr, in the folder '/home/solr',it contains folder 'conf' with > solr's configuration file:schema.xml and solrconfig.xml ,so at last file > structure will be like this: > > /home/tomcat/conf/Catalina/localhost/solr.xml > /home/tomcat/webapps/solr.war > /home/solr/conf/schema.xml > /home/solr/conf/solrconfig.xml > > I attacked a home.rar file in this mail,it is solr's files in the tomcat > directory structure,FYI > > My msn: [EMAIL PROTECTED] if there is problem,pls contact with me. > > -----Original Message----- > From: nithyavembu [mailto:[EMAIL PROTECTED] > Sent: 2007年7月10日 17:14 > To: solr-user@lucene.apache.org > Subject: RE: Solr Server Configuration > > > Hi Kijiji Xu, > > Thanks a lot for your clear guidance. I tried as you said. But i was > unclear with the environment varible values in solr.xml So atlast i didnt > touch the configuration parts. > These are the steps i followed for the solr server working.. > > 1. Used tomcat 5 with windows. > 2. Deployed the war apache-solr-1.2.0 in to the webapp directory and > rename > it as solr.war > 3. Then i created one folder named solr in tomcat - > bin. > 4. Copy the conf folder in example folder and placed that conf in the solr > folder in tomcat bin. > 5. Then start the server and and tried the url http://localhost:8080/solr/ > in browser. > > Is there anything wrong i did? If so please tell me.. > > with Regards, > V.Nithya. > > > Kijiji Xu, Ping wrote: >> >> i) In lucene we add document by using java. But here they given in xml >> format and posting them using POST.jar. How can i add document in java? >> In java ,there have a class named org.apache.solr.util.SimplePostTool >> ,you >> can look at the source code of it,and you'll know how it worked for >> posting xml data to solr >> >> ii) How can i send the http request n get response in a standalone java >> program? >> In my opinion, you can use the java HttpURLConnection class to request >> and >> get response from the solr server >> >> iii) Whether i have to add any xml or i have to modify the xml >> (server.xml,web.xml) files for solr server configuration? >> NO, but there have two type of configuration for solr . >> First of all, the solr configuration file locate in the solr/conf,there >> are solrconfig.xml and schema.xml ,you would change them for your >> application . >> Second, you have to deploy solr application itself to Tomcat, and you >> would put a configuration file like this in the tomcat ,the path is >> /home/tomcat/conf/Catalina/localhost/: >> <Context docBase="/home/tomcat/webapps/solr.war" debug="0" >> crossContext="true" > >> <Environment name="solr/home" type="java.lang.String" >> value="/home/tomcat/solr" override="true" /> >> </Context> >> >> That's all,if you have any question,feel free to ask me:) >> -----Original Message----- >> From: nithyavembu [mailto:[EMAIL PROTECTED] >> Sent: 2007年7月6日 13:27 >> To: solr-user@lucene.apache.org >> Subject: Solr Server Configuration >> >> >> Hi All, >> >> I am new to Solr. But i am familiar with lucene. >> I am stuggling in solr server configuation.I am using Tomcat 5. I have >> worked with the "example" standalone given with solr while i download. >> But my doubt is >> i) In lucene we add document by using java. But here they given in xml >> format and posting them using POST.jar. How can i add document in java? >> ii) How can i send the http request n get response in a standalone java >> program? >> iii) Whether i have to add any xml or i have to modify the xml >> (server.xml,web.xml) files for solr server configuration? >> >> >> Best, >> Nithya.V. >> -- >> View this message in context: >> http://www.nabble.com/Solr-Server-Configuration-tf4033748.html#a11458997 >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > -- > View this message in context: > http://www.nabble.com/Solr-Server-Configuration-tf4033748.html#a11517331 > Sent from the Solr - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/Solr-Server-Configuration-tf4033748.html#a11518289 Sent from the Solr - User mailing list archive at Nabble.com.