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 Bertie Shen <be...@gmail.com> on 2009/11/14 09:32:01 UTC

Some guide about setting up local/geo search at solr

Hey,

 I spent some times figuring out how to set up local/geo/spatial search at
solr. I hope the following description can help  given the current status.

1) Download localsolr. I download it from
http://developer.k-int.com/m2snapshots/localsolr/localsolr/1.5/ and put jar
file (in my case, localsolr-1.5.jar) in your application's WEB_INF/lib
directory of application server.

2) Download locallucene. I download it from
http://sourceforge.net/projects/locallucene/ and put jar file (in my case,
locallucene.jar in locallucene_r2.0/dist/ diectory) in your application's
WEB_INF/lib directory of application server. I also need to copy
gt2-referencing-2.3.1.jar, geoapi-nogenerics-2.1-M2.jar, and jsr108-0.01.jar
under locallucene_r2.0/lib/ directory to WEB_INF/lib. Do not copy
lucene-spatial-2.9.1.jar under Lucene codebase. The namespace has been
changed from com.pjaol.blah.blah.blah to org.apache.blah blah.

3) Update your solrconfig.xml and schema.xml. I copy it from
http://www.gissearch.com/localsolr.

4) Restart application server and try a query
/solr/select?&qt=geo&lat=xx.xx&long=yy.yy&q=abc&radius=zz.

Re: Some guide about setting up local/geo search at solr

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Not that I know.  It's not in contrib, but if you apply that patch from http://wiki.apache.org/solr/SpatialSearch I am guessing it puts things in contrib/spatial.

Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR



----- Original Message ----
> From: Bertie Shen <be...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Mon, November 16, 2009 12:41:38 PM
> Subject: Re: Some guide about setting up local/geo search at solr
> 
> Localsolr is not in contrib yet. I am interested in knowing whether
> currently there is a better solution for setting up a local search.
> 
> Cheers.
> 
> 
> 
> On Sun, Nov 15, 2009 at 9:25 PM, Otis Gospodnetic <
> otis_gospodnetic@yahoo.com> wrote:
> 
> > Nota bene:
> > My understanding is the external versions of Local Lucene/Solr are
> > eventually going to be "deprecated" in favour of what we have in contrib.
> >  Here's a stub page with a link to the spatial JIRA issue:
> > http://wiki.apache.org/solr/SpatialSearch
> >
> > Otis
> > --
> > Sematext is hiring -- http://sematext.com/about/jobs.html?mls
> > Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR
> >
> >
> >
> > ----- Original Message ----
> > > From: Bertie Shen 
> > > To: solr-user@lucene.apache.org
> > > Sent: Sat, November 14, 2009 3:32:01 AM
> > > Subject: Some guide about setting up local/geo search at solr
> > >
> > > Hey,
> > >
> > > I spent some times figuring out how to set up local/geo/spatial search at
> > > solr. I hope the following description can help  given the current
> > status.
> > >
> > > 1) Download localsolr. I download it from
> > > http://developer.k-int.com/m2snapshots/localsolr/localsolr/1.5/ and put
> > jar
> > > file (in my case, localsolr-1.5.jar) in your application's WEB_INF/lib
> > > directory of application server.
> > >
> > > 2) Download locallucene. I download it from
> > > http://sourceforge.net/projects/locallucene/ and put jar file (in my
> > case,
> > > locallucene.jar in locallucene_r2.0/dist/ diectory) in your application's
> > > WEB_INF/lib directory of application server. I also need to copy
> > > gt2-referencing-2.3.1.jar, geoapi-nogenerics-2.1-M2.jar, and
> > jsr108-0.01.jar
> > > under locallucene_r2.0/lib/ directory to WEB_INF/lib. Do not copy
> > > lucene-spatial-2.9.1.jar under Lucene codebase. The namespace has been
> > > changed from com.pjaol.blah.blah.blah to org.apache.blah blah.
> > >
> > > 3) Update your solrconfig.xml and schema.xml. I copy it from
> > > http://www.gissearch.com/localsolr.
> > >
> > > 4) Restart application server and try a query
> > > /solr/select?&qt=geo&lat=xx.xx&long=yy.yy&q=abc&radius=zz.
> >
> >


Re: Some guide about setting up local/geo search at solr

Posted by Bertie Shen <be...@gmail.com>.
Localsolr is not in contrib yet. I am interested in knowing whether
currently there is a better solution for setting up a local search.

Cheers.



On Sun, Nov 15, 2009 at 9:25 PM, Otis Gospodnetic <
otis_gospodnetic@yahoo.com> wrote:

> Nota bene:
> My understanding is the external versions of Local Lucene/Solr are
> eventually going to be "deprecated" in favour of what we have in contrib.
>  Here's a stub page with a link to the spatial JIRA issue:
> http://wiki.apache.org/solr/SpatialSearch
>
> Otis
> --
> Sematext is hiring -- http://sematext.com/about/jobs.html?mls
> Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR
>
>
>
> ----- Original Message ----
> > From: Bertie Shen <be...@gmail.com>
> > To: solr-user@lucene.apache.org
> > Sent: Sat, November 14, 2009 3:32:01 AM
> > Subject: Some guide about setting up local/geo search at solr
> >
> > Hey,
> >
> > I spent some times figuring out how to set up local/geo/spatial search at
> > solr. I hope the following description can help  given the current
> status.
> >
> > 1) Download localsolr. I download it from
> > http://developer.k-int.com/m2snapshots/localsolr/localsolr/1.5/ and put
> jar
> > file (in my case, localsolr-1.5.jar) in your application's WEB_INF/lib
> > directory of application server.
> >
> > 2) Download locallucene. I download it from
> > http://sourceforge.net/projects/locallucene/ and put jar file (in my
> case,
> > locallucene.jar in locallucene_r2.0/dist/ diectory) in your application's
> > WEB_INF/lib directory of application server. I also need to copy
> > gt2-referencing-2.3.1.jar, geoapi-nogenerics-2.1-M2.jar, and
> jsr108-0.01.jar
> > under locallucene_r2.0/lib/ directory to WEB_INF/lib. Do not copy
> > lucene-spatial-2.9.1.jar under Lucene codebase. The namespace has been
> > changed from com.pjaol.blah.blah.blah to org.apache.blah blah.
> >
> > 3) Update your solrconfig.xml and schema.xml. I copy it from
> > http://www.gissearch.com/localsolr.
> >
> > 4) Restart application server and try a query
> > /solr/select?&qt=geo&lat=xx.xx&long=yy.yy&q=abc&radius=zz.
>
>

Re: Some guide about setting up local/geo search at solr

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Nota bene:
My understanding is the external versions of Local Lucene/Solr are eventually going to be "deprecated" in favour of what we have in contrib.  Here's a stub page with a link to the spatial JIRA issue: http://wiki.apache.org/solr/SpatialSearch

Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR



----- Original Message ----
> From: Bertie Shen <be...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Sat, November 14, 2009 3:32:01 AM
> Subject: Some guide about setting up local/geo search at solr
> 
> Hey,
> 
> I spent some times figuring out how to set up local/geo/spatial search at
> solr. I hope the following description can help  given the current status.
> 
> 1) Download localsolr. I download it from
> http://developer.k-int.com/m2snapshots/localsolr/localsolr/1.5/ and put jar
> file (in my case, localsolr-1.5.jar) in your application's WEB_INF/lib
> directory of application server.
> 
> 2) Download locallucene. I download it from
> http://sourceforge.net/projects/locallucene/ and put jar file (in my case,
> locallucene.jar in locallucene_r2.0/dist/ diectory) in your application's
> WEB_INF/lib directory of application server. I also need to copy
> gt2-referencing-2.3.1.jar, geoapi-nogenerics-2.1-M2.jar, and jsr108-0.01.jar
> under locallucene_r2.0/lib/ directory to WEB_INF/lib. Do not copy
> lucene-spatial-2.9.1.jar under Lucene codebase. The namespace has been
> changed from com.pjaol.blah.blah.blah to org.apache.blah blah.
> 
> 3) Update your solrconfig.xml and schema.xml. I copy it from
> http://www.gissearch.com/localsolr.
> 
> 4) Restart application server and try a query
> /solr/select?&qt=geo&lat=xx.xx&long=yy.yy&q=abc&radius=zz.