"Alternatively you can run solr in the same tomcat as you application."
This is the thing I am still searching. However starting solr by using tomcat I am not getting proper steps to follow...when I start tomcat console looks like: Feb 14, 2008 11:02:19 AM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 14, 2008 11:02:19 AM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Feb 14, 2008 11:02:19 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 921 ms Feb 14, 2008 11:02:20 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 14, 2008 11:02:20 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 Feb 14, 2008 11:02:20 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Feb 14, 2008 11:02:20 AM org.apache.solr.servlet.SolrServlet init INFO: SolrServlet.init() Feb 14, 2008 11:02:20 AM org.apache.solr.core.Config setInstanceDir INFO: Solr home set to 'D:/Projects/csdb/solr/' Feb 14, 2008 11:02:20 AM org.apache.solr.servlet.SolrServlet init INFO: user.dir=C:\3.2\eclipse Feb 14, 2008 11:02:20 AM org.apache.solr.core.SolrConfig initConfig INFO: Loaded SolrConfig: solrconfig.xml Feb 14, 2008 11:02:21 AM org.apache.solr.core.RequestHandlers <init> INFO: adding requestHandler standard=solr.StandardRequestHandler Feb 14, 2008 11:02:21 AM org.apache.solr.core.RequestHandlers <init> INFO: adding requestHandler dismax=solr.DisMaxRequestHandler Feb 14, 2008 11:02:21 AM org.apache.solr.core.RequestHandlers <init> INFO: adding requestHandler partitioned=solr.DisMaxRequestHandler Feb 14, 2008 11:02:21 AM org.apache.solr.core.RequestHandlers <init> INFO: adding requestHandler instock=solr.DisMaxRequestHandler Feb 14, 2008 11:02:21 AM org.apache.solr.core.SolrCore <init> INFO: Opening new SolrCore at D:/Projects/csdb/solr/, dataDir=C:/solr/data Feb 14, 2008 11:02:21 AM org.apache.solr.schema.IndexSchema readConfig INFO: Reading Solr Schema Feb 14, 2008 11:02:21 AM org.apache.solr.schema.IndexSchema readConfig INFO: Schema name=csdb Feb 14, 2008 11:02:21 AM org.apache.solr.schema.IndexSchema readConfig INFO: default search field is text Feb 14, 2008 11:02:21 AM org.apache.solr.schema.IndexSchema readConfig INFO: query parser default operator is OR Feb 14, 2008 11:02:21 AM org.apache.solr.schema.IndexSchema readConfig INFO: unique key field: csid Feb 14, 2008 11:02:21 AM org.apache.solr.core.SolrCore parseListener INFO: Searching for listeners: //[EMAIL PROTECTED]"firstSearcher"] Feb 14, 2008 11:02:21 AM org.apache.solr.core.SolrCore parseListener INFO: Searching for listeners: //[EMAIL PROTECTED]"newSearcher"] Feb 14, 2008 11:02:21 AM org.apache.solr.core.SolrCore parseListener INFO: added SolrEventListener: org.apache.solr.core.QuerySenderListener{queries=[{q=solr,start=0,rows=10}]} Feb 14, 2008 11:02:21 AM org.apache.solr.core.SolrCore initWriters INFO: adding queryResponseWriter xslt=org.apache.solr.request.XSLTResponseWriter Feb 14, 2008 11:02:21 AM org.apache.solr.request.XSLTResponseWriter init INFO: xsltCacheLifetimeSeconds=5 Feb 14, 2008 11:02:21 AM org.apache.solr.search.SolrIndexSearcher <init> INFO: Opening [EMAIL PROTECTED] main Feb 14, 2008 11:02:21 AM org.apache.solr.core.SolrCore registerSearcher INFO: Registered new searcher [EMAIL PROTECTED] main Feb 14, 2008 11:02:21 AM org.apache.solr.update.DirectUpdateHandler2$CommitTracker <init> INFO: autocommit if docs >= 10000 Feb 14, 2008 11:02:21 AM org.apache.solr.servlet.SolrServlet init INFO: SolrServlet.init() done Feb 14, 2008 11:02:21 AM org.apache.solr.servlet.SolrUpdateServlet init INFO: SolrUpdateServlet.init() done Feb 14, 2008 11:02:21 AM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] [csdb] INFO [main] [/csdb].log(647) | Loading Spring root WebApplicationContext SearchIndexer Initialized as : http://localhost:8983/solr/update AbandonedObjectPool is used ([EMAIL PROTECTED]) LogAbandoned: false RemoveAbandoned: true RemoveAbandonedTimeout: 60 [csdb] INFO [main] SimpleThreadPool.initialize(258) | Job execution threads will use class loader of thread: main [csdb] INFO [main] QuartzScheduler.<init>(209) | Quartz Scheduler v.1.6.0 created. [csdb] INFO [main] RAMJobStore.initialize(141) | RAMJobStore initialized. [csdb] INFO [main] StdSchedulerFactory.instantiate(1208) | Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' [csdb] INFO [main] StdSchedulerFactory.instantiate(1212) | Quartz scheduler version: 1.6.0 [csdb] INFO [main] QuartzScheduler.setJobFactory(2065) | JobFactory set to: [EMAIL PROTECTED] [csdb] INFO [main] QuartzScheduler.start(455) | Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. Hibernate: select role0_.RoleID as RoleID10_, role0_.Name as Name10_, role0_.Description as Descript3_10_, role0_.Active as Active10_ from role role0_ order by role0_.Name [csdb] INFO [main] LocaleFilter.init(152) | Initializing filter 'localeFilter' [csdb] INFO [main] LocaleFilter.init(177) | Filter 'localeFilter' configured successfully [csdb] INFO [main] GZIPFilter.init(152) | Initializing filter 'compressionFilter' [csdb] INFO [main] GZIPFilter.init(177) | Filter 'compressionFilter' configured successfully Feb 14, 2008 11:02:35 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Feb 14, 2008 11:02:35 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Feb 14, 2008 11:02:36 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Feb 14, 2008 11:02:36 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Feb 14, 2008 11:02:36 AM org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 14, 2008 11:02:36 AM org.apache.coyote.ajp.AjpAprProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 Feb 14, 2008 11:02:36 AM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Feb 14, 2008 11:02:36 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 16437 ms I think something is missing in the INFO: statements above...may be JNDI is not set I have followed all the steps given on the solr wiki sites. Like I have added solr.xml file in Tomcat 5.5\conf\Catalina\localhost n specified the home for solr. Content looks like: <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> Please tell me if anything missing... 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 > > > -- View this message in context: http://www.nabble.com/solr-to-work-for-my-web-application-tp15450968p15474392.html Sent from the Solr - User mailing list archive at Nabble.com.