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 Matt Mitchell <go...@gmail.com> on 2012/03/07 16:25:18 UTC

solr geospatial / spatial4j

Hi,

I'm researching options for handling a better geospatial solution. I'm
currently using Solr 3.5 for a read-only "database", and the
point/radius searches work great. But I'd like to start doing point in
polygon searches as well. I've skimmed through some of the geospatial
jira issues, and read about spaitial4j, which is very interesting. I
see on the github page that this will soon be part of lucene, can
anyone confirm this?

I attempted to build the spatial4j demo but no luck. It had problems
finding lucene 4.0-SNAPSHOT, which I guess is because there are no
4.0-SNAPSHOT nightly builds? If anyone knows how I can get around
this, please let me know!

Other than spatial4j, is there a way to do point in polgyon searches
with solr 3.5.0 right now? Is there some tricky indexing/querying
strategy that would allow this?

Thanks!

- Matt

Re: solr geospatial / spatial4j

Posted by Ryan McKinley <ry...@gmail.com>.
On Wed, Mar 7, 2012 at 7:25 AM, Matt Mitchell <go...@gmail.com> wrote:
> Hi,
>
> I'm researching options for handling a better geospatial solution. I'm
> currently using Solr 3.5 for a read-only "database", and the
> point/radius searches work great. But I'd like to start doing point in
> polygon searches as well. I've skimmed through some of the geospatial
> jira issues, and read about spaitial4j, which is very interesting. I
> see on the github page that this will soon be part of lucene, can
> anyone confirm this?

perhaps -- see the discussion on:
https://issues.apache.org/jira/browse/LUCENE-3795

This will involve a few steps before it is actually integrated with
the lucene project -- and then a few more to be usable from solr

>
> I attempted to build the spatial4j demo but no luck. It had problems
> finding lucene 4.0-SNAPSHOT, which I guess is because there are no
> 4.0-SNAPSHOT nightly builds? If anyone knows how I can get around
> this, please let me know!
>

ya they are published -- you just have to specify where you want to
pull them from.  If you use the 'updateLucene' profile, it will pull
them from:  https://repository.apache.org/content/groups/snapshots/

use:  mvn clean install -P updateLucene


> Other than spatial4j, is there a way to do point in polgyon searches
> with solr 3.5.0 right now? Is there some tricky indexing/querying
> strategy that would allow this?
>

I don't know of anything else -- and note that polygon stuff has a
ways to go before it is generally ready for prime-time.

ryan

Re: solr geospatial / spatial4j

Posted by Erick Erickson <er...@gmail.com>.
Yes, there are trunk nightly builds, see:
https://builds.apache.org//view/S-Z/view/Solr/job/Solr-trunk/

But I don't think LSP is in trunk at this point, so that's not useful. The
code branch is on (I think)
http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_3795_ls_spatial_playground
but I confess I haven't tried to get and build it all, I'm not quite sure what's
needed
Best
Erick

On Wed, Mar 7, 2012 at 10:25 AM, Matt Mitchell <go...@gmail.com> wrote:
> Hi,
>
> I'm researching options for handling a better geospatial solution. I'm
> currently using Solr 3.5 for a read-only "database", and the
> point/radius searches work great. But I'd like to start doing point in
> polygon searches as well. I've skimmed through some of the geospatial
> jira issues, and read about spaitial4j, which is very interesting. I
> see on the github page that this will soon be part of lucene, can
> anyone confirm this?
>
> I attempted to build the spatial4j demo but no luck. It had problems
> finding lucene 4.0-SNAPSHOT, which I guess is because there are no
> 4.0-SNAPSHOT nightly builds? If anyone knows how I can get around
> this, please let me know!
>
> Other than spatial4j, is there a way to do point in polgyon searches
> with solr 3.5.0 right now? Is there some tricky indexing/querying
> strategy that would allow this?
>
> Thanks!
>
> - Matt