You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Stardrive Engineering <st...@gmail.com> on 2011/10/02 06:59:57 UTC

Setting up Solr 3.4 example with Tomcat 7

Solr,

We are looking to test Solr in a Tomcat setting and have discovered that the samples that come with Solr are demonstrated with Jetty. Is there a tutorial that teaches how to rebuild these samples within Tomcat? So far we have Tomcat running and a basic deployed version of Solr that only shows a white page with "Welcome to Solr" in it but nothing else.

We are new to Solr and eager to learn, a Tomcat oriented tutorial that moves on from here would be most helpful.

SDE

Re: Setting up Solr 3.4 example with Tomcat 7

Posted by Stardrive Engineering <st...@gmail.com>.
I'm on OS X for Solr work. 

It would be great to have a Tomcat based example because it involves a lot of effort just to get something up and functional other wise. Here is how I see it making sense:

1 - Have a tutorial or distribution that has Tomcat and Solr integrated, this can be cloned and reused as a base for diverse projects
2 - Have one or a few short samples (they do not need to index the whole earth catalogue :-) that are nicely abstracted from (1)
3 - Have the samples show how the developer would use an IDE and the Tomcat/Solr server together in production

Actually, basically two samples, a webapp only and a client based SolrJ example would be all that is needed. Then later all the diverse things Solr can do could be introduced onto the foundation a developer would by then have under their belt. As it stands now, there is a great deal of talk about all the stuff Solr can do but not enough practical get your feet wet here is how you do it information for new users. Looking around at web articles it looks like everyone has struggled with this same issue so having a fix would be nice to have once and for all.

SDE


On 2011-10-02, at 9:55 AM, Gora Mohanty wrote:

> On Sun, Oct 2, 2011 at 8:13 PM, Peter Wolanin <pe...@acquia.com> wrote:
>> I've seen a number of users fail to get Solr working correctly in
>> combination with the Drupal client code when using the .deb installer
>> so I have been strongly recommending against it personally.
> 
> Hmm, have never done this myself for Drupal, and I am not sure
> of any special requirements there. However, we have used this
> package with Java, and Haystack in Django, and have not faced
> problems.
> 
>> It's also a rather stale version of Solr, generally.
> 
> That is correct. It uses Solr 1.4, but as it meeds the requirements
> for many sites, and is now a well-tested piece of software for us,
> we have not felt it necessary to move in some cases. For others,
> we have been moving away from this package to get newer versions
> of Solr, or to use the Lucid distribution of Solr.
> 
> So, all in all, using the OS package for Solr + Tomcat still makes
> sense, especially for new users, IMHO.
> 
> Regards,
> Gora


Re: Setting up Solr 3.4 example with Tomcat 7

Posted by Gora Mohanty <go...@mimirtech.com>.
On Sun, Oct 2, 2011 at 8:13 PM, Peter Wolanin <pe...@acquia.com> wrote:
> I've seen a number of users fail to get Solr working correctly in
> combination with the Drupal client code when using the .deb installer
> so I have been strongly recommending against it personally.

Hmm, have never done this myself for Drupal, and I am not sure
of any special requirements there. However, we have used this
package with Java, and Haystack in Django, and have not faced
problems.

> It's also a rather stale version of Solr, generally.

That is correct. It uses Solr 1.4, but as it meeds the requirements
for many sites, and is now a well-tested piece of software for us,
we have not felt it necessary to move in some cases. For others,
we have been moving away from this package to get newer versions
of Solr, or to use the Lucid distribution of Solr.

So, all in all, using the OS package for Solr + Tomcat still makes
sense, especially for new users, IMHO.

Regards,
Gora

Re: Setting up Solr 3.4 example with Tomcat 7

Posted by Peter Wolanin <pe...@acquia.com>.
I've seen a number of users fail to get Solr working correctly in
combination with the Drupal client code when using the .deb installer
so I have been strongly recommending against it personally.

It's also a rather stale version of Solr, generally.

-Peter

On Sun, Oct 2, 2011 at 4:04 AM, Gora Mohanty <go...@mimirtech.com> wrote:
> On Sun, Oct 2, 2011 at 12:22 PM, Stardrive Engineering
> <st...@gmail.com> wrote:
>> Thanks. Since Tomcat and Solr are running already Tomcat oriented samples to quickly get up to
>> speed would be good to have next.
>
> I think that the issue is that Jetty is small, and easy to embed and get
> running, which is why it is packaged along with Solr.
>
>>                                                  What do you think of this site, is it up to date and worth learning? The site seems to get cut off prematurely, are there more tutorials of this kind?
>>
>> http://synapticloop.com/tomes/solr/solr-tutorial/solr-from-whoa-to-go/
>
> Just skimmed through this part,
> http://synapticloop.com/tomes/solr/solr-tutorial/the-base-solr-install/
> and it looks reasonable.
>
> What operating system are you using? Some of them, e.g., Debian and
> Ubuntu, have packages for Solr (though, probably version 1.4)
> running in Tomcat. It might be easiest to look for such a package
> for your OS.
>
> Regards,
> Gora
>



-- 
Peter M. Wolanin, Ph.D.      : Momentum Specialist,  Acquia. Inc.
peter.wolanin@acquia.com : 781-313-8322

"Get a free, hosted Drupal 7 site: http://www.drupalgardens.com"

Re: Setting up Solr 3.4 example with Tomcat 7

Posted by Gora Mohanty <go...@mimirtech.com>.
On Sun, Oct 2, 2011 at 12:22 PM, Stardrive Engineering
<st...@gmail.com> wrote:
> Thanks. Since Tomcat and Solr are running already Tomcat oriented samples to quickly get up to
> speed would be good to have next.

I think that the issue is that Jetty is small, and easy to embed and get
running, which is why it is packaged along with Solr.

>                                                  What do you think of this site, is it up to date and worth learning? The site seems to get cut off prematurely, are there more tutorials of this kind?
>
> http://synapticloop.com/tomes/solr/solr-tutorial/solr-from-whoa-to-go/

Just skimmed through this part,
http://synapticloop.com/tomes/solr/solr-tutorial/the-base-solr-install/
and it looks reasonable.

What operating system are you using? Some of them, e.g., Debian and
Ubuntu, have packages for Solr (though, probably version 1.4)
running in Tomcat. It might be easiest to look for such a package
for your OS.

Regards,
Gora

Re: Setting up Solr 3.4 example with Tomcat 7

Posted by Stardrive Engineering <st...@gmail.com>.
Thanks. Since Tomcat and Solr are running already Tomcat oriented samples to quickly get up to speed would be good to have next. What do you think of this site, is it up to date and worth learning? The site seems to get cut off prematurely, are there more tutorials of this kind?

http://synapticloop.com/tomes/solr/solr-tutorial/solr-from-whoa-to-go/

SDE


On 2011-10-02, at 12:06 AM, Gora Mohanty wrote:

> On Sun, Oct 2, 2011 at 10:29 AM, Stardrive Engineering
> <st...@gmail.com> wrote:
>> Solr,
>> 
>> We are looking to test Solr in a Tomcat setting and have discovered that the samples that come with Solr are demonstrated with Jetty. Is there a tutorial that teaches how to rebuild these samples within Tomcat? So far we have Tomcat running and a basic deployed version of Solr that only shows a white page with "Welcome to Solr" in it but nothing else.
>> 
>> We are new to Solr and eager to learn, a Tomcat oriented tutorial that moves on from here would be most helpful.
> 
> 
> Please see http://wiki.apache.org/solr/SolrTomcat . We, and
> many other people, have been running Solr with Tomcat in
> production.
> 
> The Solr Wiki has a pretty wide range of documentation, and
> would be a good starting point, as would the book on Solr 1.4,
> by Eric Pugh.
> 
> Regards,
> Gora


Re: Setting up Solr 3.4 example with Tomcat 7

Posted by Gora Mohanty <go...@mimirtech.com>.
On Sun, Oct 2, 2011 at 10:29 AM, Stardrive Engineering
<st...@gmail.com> wrote:
> Solr,
>
> We are looking to test Solr in a Tomcat setting and have discovered that the samples that come with Solr are demonstrated with Jetty. Is there a tutorial that teaches how to rebuild these samples within Tomcat? So far we have Tomcat running and a basic deployed version of Solr that only shows a white page with "Welcome to Solr" in it but nothing else.
>
> We are new to Solr and eager to learn, a Tomcat oriented tutorial that moves on from here would be most helpful.


Please see http://wiki.apache.org/solr/SolrTomcat . We, and
many other people, have been running Solr with Tomcat in
production.

The Solr Wiki has a pretty wide range of documentation, and
would be a good starting point, as would the book on Solr 1.4,
by Eric Pugh.

Regards,
Gora