Hi Thorsten, Many thanks for ur replies so far...finally i set up correct environment for Solr. Its working:clap:
Solr Rocks! Thorsten Scherler wrote: > > On Thu, 2008-02-14 at 23:16 -0800, newBea wrote: >> Hi Thorsten... >> >> SOrry for giving u much trouble but I need some answer regarding >> solr...plz >> help... >> >> Question1 >> I am using tomcat 5.5.23 so for JNDI setup of solr, adding solr.xml with >> context fragment as below in the tomcat5.5/...catalina/localhost. >> >> <Context docBase="C:/solr.war" debug="0" crossContext="true" > >> <Environment name="solr/home" type="java.lang.String" >> value="D:/Projects/csdb/solr" override="true" /> >> </Context> >> >> Is it the correct way of doing it? > > Yes as I understand the wiki page. > >> Or do I need to add context fragment in >> the server.xml of tomcat5.5? >> >> Question2 >> I am starting solr server using start.jar from another location on C: >> drive...whereas my home location indicated on D: drive. Is it the root >> coz I >> am not getting the search result? > > Hmm, as I understand it you are starting two instance of solr! One as a > tomcat and the other as jetty. Why do you want that? If you have solr on > tomcat you do not need the jetty anymore. I does make 0 sense under > normal circumstances to do this. > >> >> Question3 >> I have added parameter as <dataDir>C:\solr\data</dataDir> in >> solrconfig.xml... > > That seems to be wrong. It should read <dataDir>${solr.data.dir:C:\solr > \dat}</dataDir> but I am not using windows so I am not sure whether you > may need to escape the path. > > salu2 > >> but the indexes are not getting stored there...indexes for >> search are getting stored in the default dir of solr...any suggestions >> >> Thanks in advance... >> >> >> Thorsten Scherler wrote: >> > >> > On Wed, 2008-02-13 at 05:04 -0800, newBea wrote: >> >> I havnt used luke.xsl. Ya but the link provided by u gives me "Solr >> Luke >> >> Request Handler Response"... >> >> >> >> <uniquekey> is simple string as: csid >> > >> > So you have: >> > <uniqueKey>csid</uniqueKey> >> > >> > and >> > <field name="csid" type="string" indexed="true" stored="true" >> > required="true" /> >> > >> > >> >> >> >> till now I am updating docs thru command prompt as : post.jar *.xml >> >> http://localhost:8983/update >> > >> > how do the docs look like? I mean since you changed the sample config >> > you send changed documents as well, right? How do they look? >> > >> >> >> >> I am not clear on how do I post xml docs >> > >> > Well like you said, with the post.jar and then you will send your >> > modified docs but there are many ways to trigger an add command to >> solr. >> > >> >> or wud xml docs be posted while I >> >> request solr thru tomcat at the time of searching text... >> > >> > To search text from tomcat you will need to have a servlet or something >> > similar that contacts the solr server for the search result and the >> > handle the response (e.g. apply custom xsl to the results). >> > >> > >> > >> >> >> >> This manually procedure when I update the xml docs on exampledocs >> folder >> >> inside distribution package restrict it to exampledocs itself >> > >> > No, either copy the jar to the folder where you have your documents or >> > add it to the PATH. >> > >> >> ...I am not >> >> getting a way where my sites text get searched by solr...Do I need to >> >> copy >> >> start.jar and relevant folders in my working directory for web >> >> application. >> > >> > Hmm, it seems that you not have understood the second paragraph of >> > http://wiki.apache.org/solr/mySolr >> > >> > "Typically it's not recommended to have your front end users/clients >> > hitting Solr directly as part of an HTML form submit ... the more >> > conventional way to think of it is that Solr is a backend service, >> which >> > your application can talk to over HTTP ..." >> > >> > Meaning you have two different server running. Alternatively you can >> run >> > solr in the same tomcat as you application. If you follow SolrTomcat >> > from the wiki it will be install as "solr" servlet. Your application >> > will then communicate with this serlvet. >> > >> > salu2 >> > >> >> >> >> any help? >> >> >> >> Thorsten Scherler-3 wrote: >> >> > >> >> > On Wed, 2008-02-13 at 03:42 -0800, newBea wrote: >> >> >> Hi Thorsten, >> >> >> >> >> >> I have my application running on 8080 port with tomcat 5.5.23....I >> am >> >> >> starting solr on port 8983 with jetty server using command "java >> -jar >> >> >> start.jar". >> >> >> >> >> >> Both the server gets started...now any search I make on tomcat >> >> >> application >> >> >> is interacting with solr very well. The problem is "schema.xml" and >> >> >> "solrconfig.xml" in the conf directory are default one. But after >> >> adding >> >> >> customized schema name parameter and required fields, solr is not >> >> working >> >> >> as >> >> >> required. >> >> > >> >> > Can you post the modification you made to both files? >> >> > >> >> >> >> >> >> Customized code for parsing the xml generated from solr is working >> >> >> fine...but it is unable to find the uniquekey field which we set >> for >> >> all >> >> >> the >> >> >> documents in the schema document....and thus result is 0 means >> >> nothing. >> >> >> >> >> > >> >> > Hmm, what is your update command and your unique key? >> >> > >> >> > We would need to see this modification to tell you what may be >> wrong. >> >> > >> >> > Did you try >> http://YOUR_HOST:8983/solr/admin/luke?wt=xslt&tr=luke.xsl >> >> > >> >> > What does this gives? >> >> > >> >> > salu2 >> >> > >> >> >> I am not able to find the solution for this one... any suggestions >> wud >> >> be >> >> >> appreciated...thanks in advance. >> >> >> >> >> >> Thorsten Scherler-3 wrote: >> >> >> > >> >> >> > On Wed, 2008-02-13 at 00:06 -0800, newBea wrote: >> >> >> >> hi >> >> >> >> >> >> >> >> I am new to solr/lucene...I have installed solr nightly >> >> version..its >> >> >> >> working >> >> >> >> very fine. >> >> >> >> >> >> >> >> But it is working for the exampledocs present in the example >> folder >> >> of >> >> >> >> the >> >> >> >> nightly version of solr. I need solr to work for my current web >> >> >> >> application...I am using tomcat5.5.23 for the >> >> >> >> application(Windows)...using >> >> >> >> jetty to start solr from outside of the webapps folder. >> >> >> >> >> >> >> >> Is there any way to start the jetty using tomcat? >> >> >> >> >> >> >> >> Help would be appreciated... >> >> >> > >> >> >> > some links that you may get started: >> >> >> > http://wiki.apache.org/solr >> >> >> > http://wiki.apache.org/solr/mySolr >> >> >> > http://wiki.apache.org/solr/SolrTomcat >> >> >> > >> >> >> > salu2 >> >> >> > -- >> >> >> > Thorsten Scherler >> >> >> thorsten.at.apache.org >> >> >> > Open Source Java consulting, training and >> >> >> solutions >> >> >> > >> >> >> > >> >> >> > >> >> >> >> >> > -- >> >> > Thorsten Scherler >> >> thorsten.at.apache.org >> >> > Open Source Java consulting, training and >> >> solutions >> >> > >> >> > >> >> > >> >> >> > -- >> > Thorsten Scherler >> thorsten.at.apache.org >> > Open Source Java consulting, training and >> solutions >> > >> > >> > >> > -- > Thorsten Scherler thorsten.at.apache.org > Open Source Java consulting, training and solutions > > > -- View this message in context: http://www.nabble.com/solr-to-work-for-my-web-application-tp15450968p15632861.html Sent from the Solr - User mailing list archive at Nabble.com.