solr to work for my web application
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 web application... Help would be appreciated... Thanks in advance. -- View this message in context: http://www.nabble.com/solr-to-work-for-my-web-application-tp15450968p15450968.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr to work for my web application
Many thnks for the reply...Thorsten Scherler-3. I have already visited those sites...but I think have to visit again...wl be back. 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 > > > -- View this message in context: http://www.nabble.com/solr-to-work-for-my-web-application-tp15450968p15451924.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr to work for my web application
Hi Thorsten, I have my application running on 8080 port with tomcat 5.5.23I 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. 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 documentand thus result is 0 means nothing. I am not able to find the solution for this one... any suggestions wud be appreciated...thanks in advance. newBea wrote: > > Many thnks for the reply...Thorsten Scherler-3. > > I have already visited those sites...but I think have to visit again...wl > be back. > > 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 >> >> >> > > -- View this message in context: http://www.nabble.com/solr-to-work-for-my-web-application-tp15450968p15456187.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr to work for my web application
Hi Thorsten, I have my application running on 8080 port with tomcat 5.5.23I 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. 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 documentand thus result is 0 means nothing. 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 > > > -- View this message in context: http://www.nabble.com/solr-to-work-for-my-web-application-tp15450968p15456368.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr to work for my web application
I havnt used luke.xsl. Ya but the link provided by u gives me "Solr Luke Request Handler Response"... is simple string as: csid till now I am updating docs thru command prompt as : post.jar *.xml http://localhost:8983/update I am not clear on how do I post xml docs or wud xml docs be posted while I request solr thru tomcat at the time of searching text... This manually procedure when I update the xml docs on exampledocs folder inside distribution package restrict it to exampledocs itself...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. 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.23I 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 documentand 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 > > > -- View this message in context: http://www.nabble.com/solr-to-work-for-my-web-application-tp15450968p15457617.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr to work for my web application
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: 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"... >> >> is simple string as: csid > > So you have: > csid > > and > 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.23I am >> >> starting solr on port 8983 with jetty server using command "java -jar >> >> start.jar". >> >> >>
RE: solr to work for my web application
Hey hi... Ya the content is generated dynamically from a database...but all data in the xml docs(parameters in it) will have same structure as specified in the schema..e.g all will have uniquekey parameter set as "csid". I am adding particular case studies in my database with all information like name, address...also tags. Then I want to search those case studies on the basis of tags added. I have set up solr for that but I am starting it using jetty server. I think I will have to start it thru tomcat itself. Any quotes? Funtick wrote: > > Hi, > > As I understood, you need a search for your web application. > > - How many pages it has? > - Is content generated dynamically from a database (for instance)? > > Another problem: after updating solrschema.xml you need > - restart SOLR > - reindex SOLR > > With changing unique ID in schema... I don't remember, but it should be of > specific type. You probably need to reindex SOLR. > > If your application generates dynamic content, it would be better to index > database directly adding 'URL' field to SOLR schema. > > > -- View this message in context: http://www.nabble.com/solr-to-work-for-my-web-application-tp15450968p15474490.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: solr to work for my web application
My eclipse IDE still gives me suggestion that JNDI is not set properly...How to set JNDI for solr? I am using tomcat5.5.23 and added solr.xml with context fragments inside the tomact5.5/../catalina/localhost. Is it the correct way of doing it? Or do i need to add context fragment in the server.xml file in conf dir of tomcat? It is easy to start server using jetty externally, however I want solr to be up and running through tomcat, is it possible? If yes please tell me the helpful resources or any suggestions from your side... Thanks in advance... Funtick wrote: > > It should be easy to configure SOLR Schema, & use SOLRJ client; does not > matter jetty/tomcat etc.; stick with simple SOLRJ java client: access > database, generate SOLR document, update SOLR, execute query, parse > (SOLRJ->SolrDocument), generate content, etc... Much easier, scalable, and > more effective than XSLT (initial version of my website was Cocoon&SAXON > powered; it was ugly...). > www.tokenizer.org > >> >> Hey hi... >> >> Ya the content is generated dynamically from a database...but >> all data in >> the xml docs(parameters in it) will have same structure as >> specified in the >> schema..e.g all will have uniquekey parameter set as "csid". >> >> I am adding particular case studies in my database with all >> information like >> name, address...also tags. Then I want to search those case >> studies on the >> basis of tags added. I have set up solr for that but I am >> starting it using >> jetty server. I think I will have to start it thru tomcat itself. >> >> Any quotes? >> >> Funtick wrote: >> > >> > Hi, >> > >> > As I understood, you need a search for your web application. >> > >> > - How many pages it has? >> > - Is content generated dynamically from a database (for instance)? >> > >> > Another problem: after updating solrschema.xml you need >> > - restart SOLR >> > - reindex SOLR >> > >> > With changing unique ID in schema... I don't remember, but >> it should be of >> > specific type. You probably need to reindex SOLR. >> > >> > If your application generates dynamic content, it would be >> better to index >> > database directly adding 'URL' field to SOLR schema. >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/solr-to-work-for-my-web-application-tp15 > 450968p15474490.html > Sent from the Solr - User mailing list archive at Nabble.com. > > > > > -- View this message in context: http://www.nabble.com/solr-to-work-for-my-web-application-tp15450968p15495846.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr to work for my web application
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. Is it the correct way of doing it? 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? Question3 I have added parameter as C:\solr\data in solrconfig.xml...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"... >> >> is simple string as: csid > > So you have: > csid > > and > 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.23I 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 documentand 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...
Re: solr to work for my web application
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. >> >> >>> value="D:/Projects/csdb/solr" override="true" /> >> >> >> 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 C:\solr\data in >> solrconfig.xml... > > That seems to be wrong. It should read ${solr.data.dir:C:\solr > \dat} 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"... >> >> >> >> is simple string as: csid >> > >> > So you have: >> > csid >> > >> > and >> > > > 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 hel
Re: solr to work for my web application
Hey Thorsten, I need to know one more thing...currently solr is getting up and running on port 8080. What my understanding is whichever port my tomcat is running, solr is running on the same. I mean if tomcat is down, solr is down and vice versa. My requirement is I need solr to run on port 80 and also this should be up and running through tomcat configuration for solr. I am searching for this requirement, please let me know if you have any clues. Thanks in advance... Thorsten Scherler-3 wrote: > > On Fri, 2008-02-22 at 04:11 -0800, newBea wrote: >> Hi Thorsten, >> >> Many thanks for ur replies so far...finally i set up correct environment >> for >> Solr. Its working:clap: > > :) > > Congrats, glad you got it running. > >> >> Solr Rocks! > > Indeed. :) > > salu2 > >> >> 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. >> >> >> >> >> >>> >> value="D:/Projects/csdb/solr" override="true" /> >> >> >> >> >> >> 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 C:\solr\data in >> >> solrconfig.xml... >> > >> > That seems to be wrong. It should read ${solr.data.dir:C:\solr >> > \dat} 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"... >> >> >> >> >> >> is simple string as: csid >> >> > >> >> > So you have: >> >> > csid >> >> > >> >> > and >> >> > > >> > 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 x
Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13
Hi Alejandro, I followed the steps given by you on this forum for solr installation. Its working well... However do you have any idea about starting solr on prerequisite port. I mean if I want solr to run on port different than 8080 and with the same steps provided by you, what would be the better way? If you have any clues about it please do let me know... Thanks in advance... Alejandro Valdez wrote: > > Hello, yes of course. > > I followed the instructions from > http://wiki.apache.org/solr/SolrTomcat (see below) > but instead of copy the example configuration files into the directory > c:\web\solr\ as > is explained in that page, I did it into c:\tomcat\webapps\solr and > started Tomcat with: > -Dsolr.solr.home=c:\tomcat\webapps\solr > > But it didn't work. > > > Apparently the directory used in solr.solr.home variable MUST NOT > point inside the Tomcat's webapps directory, or it will be ignored. > *** > > The enviroment I used was: > Windows XP Professional > XAMPP 1.6.4 > Tomcat 6.0.13 > Sun JDK 5 > > > Updated content of http://wiki.apache.org/solr/SolrTomcat: > > Tomcat on Windows > Single Solr app > > 1) Download and install [WWW] Tomcat for Windows using the MSI > installer. Install it with the tcnative.dll file. Say you installed it > in c:\tomcat\ > 2) Check if Tomcat is installed correctly by going to [WWW] > http://localhost:8080/ > 3) Change the c:\tomcat\conf\server.xml file to add the URIEncoding > Connector element as shown above. > 4) Download and unzip the Solr distribution zip file into (say) > c:\temp\solrZip\ > 5) Make a directory called solr where you intend the application > server to function, say c:\web\solr\ (Important: It must be outside > the Tomcat's webapps directory) > 6) Copy the contents of the example\solr directory > c:\temp\solrZip\example\solr\ to c:\web\solr\ > 7) Stop the Tomcat service > 8) Copy the *solr*.war file from c:\temp\solrZip\dist\ to the Tomcat > webapps directory c:\tomcat\webapps\ > 9) Rename the *solr*.war file solr.war > 10)Use the system tray icon to configure Tomcat to start with the > following Java option: -Dsolr.solr.home=c:\web\solr > 11)Start the Tomcat service > 12)Go to the solr admin page to verify that the installation is > working. It will be at [WWW] http://localhost:8080/solr/admin > > > On Thu, Feb 21, 2008 at 4:38 PM, David Pratt <[EMAIL PROTECTED]> > wrote: >> Hi Alejandro. Since this was a bit of trouble for you could you post the >> steps you used to get it to work (and/or any deviation from the wiki) to >> summarize this thread. It has been some days that I have seen the thread >> on the list and it would leave something useful other than I got it >> running for other folks with a similar issue in future. Many thanks. >> >> Regards >> David >> >> >> >> Alejandro Valdez wrote: >> > Thanks a lot, it's running right now. >> > >> > It seems that solr.solr.home should not point into the webapps >> > directory, maybe this tip should be included in the installation >> > guide... >> > >> > Thanks again. >> > >> > >> > On Wed, Feb 20, 2008 at 10:50 PM, Yonik Seeley <[EMAIL PROTECTED]> >> wrote: >> >> On Wed, Feb 20, 2008 at 5:32 PM, Alejandro Valdez >> >> >> >> <[EMAIL PROTECTED]> wrote: >> >> >> >>> Hi, I changed that line to: >> >> > >> >> > set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr >> -Duser.language=en >> >> > >> >> > But It STILL isn't working...I almost give up :-( >> >> > >> >> > When I try to open http://localhost:8080/solr/admin, I get: >> >> > >> >> > --- >> >> > HTTP Status 404 - /solr/admin >> >> > type Status report >> >> > message /solr/admin >> >> > description The requested resource (/solr/admin) is not >> available. >> >> > Apache Tomcat/6.0.13 >> >> > --- >> >> > >> >> > >> >> > Someone should fix the page >> http://wiki.apache.org/solr/SolrTomcat, >> >> > there says that should be used -Dsolr.solr.home=... : >> >> >> >> solr.solr.home is the correct variable. >> >> Try putting the solr home (the contents of solr/example) outside the >> >> webapps directory. Only solr.war should go inside webapps. >> >> >> >> You could also try the "simple example install" from here: >> >> >> >> >> >> http://wiki.apache.org/solr/SolrTomcat >> >> >> >> -Yonik >> >> >> > >> > > -- View this message in context: http://www.nabble.com/Solr-in-Windows-XP-%2B-JDK-5-%2B-Tomcat-6.0.13-tp15570591p15735974.html Sent from the Solr - User mailing list archive at Nabble.com.
Tomcat(8080) - Solr(80) port setup confusion??
Hi All, I have installed solr through tomcat(5.5.23). Its up and running on port 8080. Its like, if tomcat is running, solr is running and vice versa. I need tomcat on 8080 and solr on 80 port...Is this possible? Do I need to make changes in the server.xml of tomcat/conf...Is there any way to do this? Please let me know if anybody have clues regarding the same... Thanks in advance... -- View this message in context: http://www.nabble.com/Tomcat%288080%29---Solr%2880%29-port-setup-confusion---tp15736978p15736978.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: Tomcat(8080) - Solr(80) port setup confusion??
Thanks for the reply... Ya tomcat is an application server for web applications. However as we can start solr on any port using jetty server as given below... Jetty.xml in apache-solr-1.1.0.0(Release version)\example\etc Above the default attribute can be any port unless n until it is not occupied. Like above, is there any way in tomcat to set port for solr... Thanks Jae Joo-2 wrote: > > As I know that tomcat is the server to support servlet and jsp and solr is > just one of application of tomcat. > > So, theer is no meaning of port# of Solr. > > Thanks > > > > Jae > > > Hi All, > > I have installed solr through tomcat(5.5.23). Its up and running on port > 8080. Its like, if tomcat is running, solr is running and vice versa. I > need > tomcat on 8080 and solr on 80 port...Is this possible? Do I need to make > changes in the server.xml of tomcat/conf...Is there any way to do this? > > Please let me know if anybody have clues regarding the same... > > Thanks in advance... > > > -- > View this message in context: > http://www.nabble.com/Tomcat%288080%29---Solr%2880%29-port-setup-confusion---tp15736978p15736978.html > Sent from the Solr - User mailing list archive at Nabble.com. > > > > > -- View this message in context: http://www.nabble.com/Tomcat%288080%29---Solr%2880%29-port-setup-confusion---tp15736978p15751803.html Sent from the Solr - User mailing list archive at Nabble.com.