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