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 Mike Austin <ma...@gmail.com> on 2006/04/07 21:39:22 UTC

Run solr on windows with IIS

I know that I asked something like this before, but...

I read that you need cygwin for shell support, but is that just for the cmd
line post.sh support? I would like to run ASP.NET apps that use solr as the
search platform(on the same server for now). So, can I run IIS and
solr/servlets together? Any drawbacks or limitations that I might run into?
What should I use as the servlet engine? Apache?

Thanks!
mike

Re: Run solr on windows with IIS

Posted by Yonik Seeley <ys...@gmail.com>.
> It's not builtin to Solr,

I should clarify that part... index replication/distribution is a part
of Solr, but it's *very* loosely coupled (and not enabled or set-up by
default).  So you can come up with alternate ways of doing it if you
need multiple searchers for high-availability or traffic scaling.

-Yonik

Re: Run solr on windows with IIS

Posted by Yonik Seeley <ys...@gmail.com>.
On 4/7/06, Mike Austin <ma...@gmail.com> wrote:
> When is the replication part done or what is it used for? I need to get more
> familar with that.

It's not builtin to Solr, and it's only needed if you want a single
master Solr instance that you update, and automated copying of the
index that creates to multiple Solr slave instances (query boxes)
behind some kind of load balancer or proxy for high availability or
scaling traffic beyond what a single box can do.

> What do you mean by hard links and rsync?

Stuff you don't need to know about unless you want replication as Solr
currently implements it :-)

> From what I read it is ok to run tomcat and IIS together, you just need to
> have a connector for certain things. However, if I call the servlets from my
> asp page specifying the port (8080), it seems that might be ok. I will try
> it tonight.

Yes, that should be fine.  You just need to make HTTP requests from
your ASP pages to Solr, get back the XML, and munge/format it
correctly for your pages.

-Yonik

Re: Run solr on windows with IIS

Posted by Mike Austin <ma...@gmail.com>.
When is the replication part done or what is it used for? I need to get more
familar with that.

What do you mean by hard links and rsync?

>From what I read it is ok to run tomcat and IIS together, you just need to
have a connector for certain things. However, if I call the servlets from my
asp page specifying the port (8080), it seems that might be ok. I will try
it tonight.

On 4/7/06, Bill Au <bi...@gmail.com> wrote:
>
> The Solr server itself requires Java 1.5 and an application server which
> support Servlet 2.4.
> I know nothing about ASP.NET so I don't know if that supports Servlet 2.4or
> not.
>
> Shell support is needed for replication, which is done by a bunch of shell
> scripts.
> The current implemenation for replication also requires an OS with the
> ability to create hard links and rsync.
>
> Bill
>
> On 4/7/06, Erik Hatcher <er...@ehatchersolutions.com> wrote:
> >
> > Mike,
> >
> > I recommend you use either Tomcat or Jetty.  Personally, I am just
> > developing with the example application (thanks again to the Solr
> > creators for a nicely done example app) which has Jetty embedded.  I
> > took the example app directory, copied it to my project, tweaked the
> > configuration, added it to version control, removed the conf/solr/
> > data directory, and run:
> >
> >         java -jar start.jar
> >
> > Voila.  You may need to adjust the port that it runs on depending on
> > your system, but probably not.
> >
> > From ASP.NET, simply use RESTful HTTP GET/POST commands to the Solr
> > application server.  What a dream!
> >
> >         Erik
> >
> >
> > On Apr 7, 2006, at 3:39 PM, Mike Austin wrote:
> >
> > > I know that I asked something like this before, but...
> > >
> > > I read that you need cygwin for shell support, but is that just for
> > > the cmd
> > > line post.sh support? I would like to run ASP.NET apps that use
> > > solr as the
> > > search platform(on the same server for now). So, can I run IIS and
> > > solr/servlets together? Any drawbacks or limitations that I might
> > > run into?
> > > What should I use as the servlet engine? Apache?
> > >
> > > Thanks!
> > > mike
> >
> >
>
>

Re: Run solr on windows with IIS

Posted by Bill Au <bi...@gmail.com>.
The Solr server itself requires Java 1.5 and an application server which
support Servlet 2.4.
I know nothing about ASP.NET so I don't know if that supports Servlet 2.4 or
not.

Shell support is needed for replication, which is done by a bunch of shell
scripts.
The current implemenation for replication also requires an OS with the
ability to create hard links and rsync.

Bill

On 4/7/06, Erik Hatcher <er...@ehatchersolutions.com> wrote:
>
> Mike,
>
> I recommend you use either Tomcat or Jetty.  Personally, I am just
> developing with the example application (thanks again to the Solr
> creators for a nicely done example app) which has Jetty embedded.  I
> took the example app directory, copied it to my project, tweaked the
> configuration, added it to version control, removed the conf/solr/
> data directory, and run:
>
>         java -jar start.jar
>
> Voila.  You may need to adjust the port that it runs on depending on
> your system, but probably not.
>
> From ASP.NET, simply use RESTful HTTP GET/POST commands to the Solr
> application server.  What a dream!
>
>         Erik
>
>
> On Apr 7, 2006, at 3:39 PM, Mike Austin wrote:
>
> > I know that I asked something like this before, but...
> >
> > I read that you need cygwin for shell support, but is that just for
> > the cmd
> > line post.sh support? I would like to run ASP.NET apps that use
> > solr as the
> > search platform(on the same server for now). So, can I run IIS and
> > solr/servlets together? Any drawbacks or limitations that I might
> > run into?
> > What should I use as the servlet engine? Apache?
> >
> > Thanks!
> > mike
>
>

Re: Run solr on windows with IIS

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Mike,

I recommend you use either Tomcat or Jetty.  Personally, I am just  
developing with the example application (thanks again to the Solr  
creators for a nicely done example app) which has Jetty embedded.  I  
took the example app directory, copied it to my project, tweaked the  
configuration, added it to version control, removed the conf/solr/ 
data directory, and run:

	java -jar start.jar

Voila.  You may need to adjust the port that it runs on depending on  
your system, but probably not.

 From ASP.NET, simply use RESTful HTTP GET/POST commands to the Solr  
application server.  What a dream!

	Erik


On Apr 7, 2006, at 3:39 PM, Mike Austin wrote:

> I know that I asked something like this before, but...
>
> I read that you need cygwin for shell support, but is that just for  
> the cmd
> line post.sh support? I would like to run ASP.NET apps that use  
> solr as the
> search platform(on the same server for now). So, can I run IIS and
> solr/servlets together? Any drawbacks or limitations that I might  
> run into?
> What should I use as the servlet engine? Apache?
>
> Thanks!
> mike