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 PeterKerk <ve...@hotmail.com> on 2010/09/24 11:57:16 UTC

LocalSolr unknown handler: geo

I've configured LocalSolr according to description on this page:
http://www.gissearch.com/localsolr

I use Solr 1.4.1.

I've compiled the LocalSolr jars and put them in the Solr lib:
\apache-solr-1.4.1\example\solr\lib

The lib folder didnt exist so I created it and put the LocalSolr jars in
there.

But when I execute the query: 
http://localhost:8983/solr/db/select/?indent=on&facet=true&fl=id,lat,lng,title&q=*:*&qt=geo&lat=51.8316819&long=5.815154&radius=500

I get the error: 
HTTP ERROR: 400

unknown handler: geo

RequestURI=/solr/db/select/
-- 
View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1572964.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: LocalSolr unknown handler: geo

Posted by PeterKerk <ve...@hotmail.com>.
@Lance Norskog-2:

yes, im aware that its a request handler. I did configure it in my
solrconfig.xml. I also compiled the jars from the available LocalSolr
downloads and placed those in my current Solr directories.

But still it doesnt work.
Do you know of any LocalSolr mailinglist?
-- 
View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1579025.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: LocalSolr unknown handler: geo

Posted by Lance Norskog <go...@gmail.com>.
In answer to your actual question: "geo" is a "request handler" that is 
configured in solrconfig.xml. I don't know what it needs. The LocalSolr 
stuff should supply samples of how to change solrconfig.xml and schema.xml.

Lance

PeterKerk wrote:
> I've configured LocalSolr according to description on this page:
> http://www.gissearch.com/localsolr
>
> I use Solr 1.4.1.
>
> I've compiled the LocalSolr jars and put them in the Solr lib:
> \apache-solr-1.4.1\example\solr\lib
>
> The lib folder didnt exist so I created it and put the LocalSolr jars in
> there.
>
> But when I execute the query:
> http://localhost:8983/solr/db/select/?indent=on&facet=true&fl=id,lat,lng,title&q=*:*&qt=geo&lat=51.8316819&long=5.815154&radius=500
>
> I get the error:
> HTTP ERROR: 400
>
> unknown handler: geo
>
> RequestURI=/solr/db/select/
>    

Re: LocalSolr unknown handler: geo

Posted by PeterKerk <ve...@hotmail.com>.
@Grant Ingersoll-2

I'm ready to give this functionality a try. But before I start putting a lot
of time and effort in it, I'd like to know if the following functionality
should be possible to create:

input:
- latlong value
- distance in kilometers (or miles)

output based on Great Circle calculation:
- all records/docs that have a longlat value that can be found within this
circle

If thats possible Im glad to 'kickstart' this thing :)
If you can tell me where I can find the code...

Thanks!
-- 
View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1578997.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: LocalSolr unknown handler: geo

Posted by gearond <ge...@sbcglobal.net>.
Actually, I'm doing this from Nabble and getting used to that. Sorry for back
to back posts.

If I wanted to filter on a distance from a supplied point, and also return a
field which is the distance from the point, which:

1/ Lucene version should I use?
2/ Which GIS code should I use?
-- 
View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1578034.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: LocalSolr unknown handler: geo

Posted by gearond <ge...@sbcglobal.net>.
I also wonder where the mailing list for localsolr is. 

TIA
-- 
View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1578030.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: LocalSolr unknown handler: geo

Posted by PeterKerk <ve...@hotmail.com>.
I tried looking for a place where I could ask those questions, but where can
I find the LocalSolr mailinglist you are referring to?

Thanks!
-- 
View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1573583.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: LocalSolr unknown handler: geo

Posted by Dennis Gearon <ge...@sbcglobal.net>.
We'll be able to 'kick the tires' in about 3 weeks, sorry for that delay. But at that time, we'll be able to start using geo spatial in combination with all the other solr stuff.

Not having the pseudo field is a REAL BUMMER, though, since I want to display distance from the results. Is there a work around for that?
Dennis Gearon

Signature Warning
----------------
EARTH has a Right To Life,
  otherwise we all die.

Read 'Hot, Flat, and Crowded'
Laugh at http://www.yert.com/film.php


--- On Fri, 9/24/10, Grant Ingersoll <gs...@apache.org> wrote:

> From: Grant Ingersoll <gs...@apache.org>
> Subject: Re: LocalSolr unknown handler: geo
> To: solr-user@lucene.apache.org
> Date: Friday, September 24, 2010, 1:05 PM
> I'd say it's about 85-90% there, but
> of course, you don't know what you don't know.  Biggest
> thing missing now is "pseudo-fields", IMO, i.e. the ability
> to return the distance as a field.  Next after that is
> some type of tile/grid approach, but that's less important
> given we have Trie fields for numerics.  Also needs
> better documentation.  I know Yonik is also doing some
> refactoring for performance.
> 
> I think we've worked out most of the kinks around accuracy,
> etc. and have a reasonable bounding box calculation as well
> as implementations of several distance functions.  I'd
> encourage you to kick the tires at least and let us know
> what you think. Most importantly, I think the changes we
> have made to implement spatial have also improved Solr.
> 
> On Sep 24, 2010, at 2:07 PM, Dennis Gearon wrote:
> 
> > How functional is spatial in 3.x?
> > Dennis Gearon
> > 
> > Signature Warning
> > ----------------
> > EARTH has a Right To Life,
> >  otherwise we all die.
> > 
> > Read 'Hot, Flat, and Crowded'
> > Laugh at http://www.yert.com/film.php
> > 
> > 
> > --- On Fri, 9/24/10, Grant Ingersoll <gs...@apache.org>
> wrote:
> > 
> >> From: Grant Ingersoll <gs...@apache.org>
> >> Subject: Re: LocalSolr unknown handler: geo
> >> To: solr-user@lucene.apache.org
> >> Date: Friday, September 24, 2010, 5:22 AM
> >> You're best off to ask on the Local
> >> Solr mailing list, or have a look at Solr's 3.x
> and trunk
> >> branches, which have spatial baked in (although it
> is still
> >> improving)
> >> 
> >> On Sep 24, 2010, at 5:57 AM, PeterKerk wrote:
> >> 
> >>> 
> >>> I've configured LocalSolr according to
> description on
> >> this page:
> >>> http://www.gissearch.com/localsolr
> >>> 
> >>> I use Solr 1.4.1.
> >>> 
> >>> I've compiled the LocalSolr jars and put them
> in the
> >> Solr lib:
> >>> \apache-solr-1.4.1\example\solr\lib
> >>> 
> >>> The lib folder didnt exist so I created it and
> put the
> >> LocalSolr jars in
> >>> there.
> >>> 
> >>> But when I execute the query: 
> >>> http://localhost:8983/solr/db/select/?indent=on&facet=true&fl=id,lat,lng,title&q=*:*&qt=geo&lat=51.8316819&long=5.815154&radius=500
> >>> 
> >>> I get the error: 
> >>> HTTP ERROR: 400
> >>> 
> >>> unknown handler: geo
> >>> 
> >>> RequestURI=/solr/db/select/
> >>> -- 
> >>> View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1572964.html
> >>> Sent from the Solr - User mailing list archive
> at
> >> Nabble.com.
> >> 
> >> --------------------------
> >> Grant Ingersoll
> >> http://lucenerevolution.org Apache
> Lucene/Solr
> >> Conference, Boston Oct 7-8
> >> 
> >> 
> 
> --------------------------
> Grant Ingersoll
> http://lucenerevolution.org Apache Lucene/Solr
> Conference, Boston Oct 7-8
> 
> 

Re: LocalSolr unknown handler: geo

Posted by Grant Ingersoll <gs...@apache.org>.
I'd say it's about 85-90% there, but of course, you don't know what you don't know.  Biggest thing missing now is "pseudo-fields", IMO, i.e. the ability to return the distance as a field.  Next after that is some type of tile/grid approach, but that's less important given we have Trie fields for numerics.  Also needs better documentation.  I know Yonik is also doing some refactoring for performance.

I think we've worked out most of the kinks around accuracy, etc. and have a reasonable bounding box calculation as well as implementations of several distance functions.  I'd encourage you to kick the tires at least and let us know what you think. Most importantly, I think the changes we have made to implement spatial have also improved Solr.

On Sep 24, 2010, at 2:07 PM, Dennis Gearon wrote:

> How functional is spatial in 3.x?
> Dennis Gearon
> 
> Signature Warning
> ----------------
> EARTH has a Right To Life,
>  otherwise we all die.
> 
> Read 'Hot, Flat, and Crowded'
> Laugh at http://www.yert.com/film.php
> 
> 
> --- On Fri, 9/24/10, Grant Ingersoll <gs...@apache.org> wrote:
> 
>> From: Grant Ingersoll <gs...@apache.org>
>> Subject: Re: LocalSolr unknown handler: geo
>> To: solr-user@lucene.apache.org
>> Date: Friday, September 24, 2010, 5:22 AM
>> You're best off to ask on the Local
>> Solr mailing list, or have a look at Solr's 3.x and trunk
>> branches, which have spatial baked in (although it is still
>> improving)
>> 
>> On Sep 24, 2010, at 5:57 AM, PeterKerk wrote:
>> 
>>> 
>>> I've configured LocalSolr according to description on
>> this page:
>>> http://www.gissearch.com/localsolr
>>> 
>>> I use Solr 1.4.1.
>>> 
>>> I've compiled the LocalSolr jars and put them in the
>> Solr lib:
>>> \apache-solr-1.4.1\example\solr\lib
>>> 
>>> The lib folder didnt exist so I created it and put the
>> LocalSolr jars in
>>> there.
>>> 
>>> But when I execute the query: 
>>> http://localhost:8983/solr/db/select/?indent=on&facet=true&fl=id,lat,lng,title&q=*:*&qt=geo&lat=51.8316819&long=5.815154&radius=500
>>> 
>>> I get the error: 
>>> HTTP ERROR: 400
>>> 
>>> unknown handler: geo
>>> 
>>> RequestURI=/solr/db/select/
>>> -- 
>>> View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1572964.html
>>> Sent from the Solr - User mailing list archive at
>> Nabble.com.
>> 
>> --------------------------
>> Grant Ingersoll
>> http://lucenerevolution.org Apache Lucene/Solr
>> Conference, Boston Oct 7-8
>> 
>> 

--------------------------
Grant Ingersoll
http://lucenerevolution.org Apache Lucene/Solr Conference, Boston Oct 7-8


Re: LocalSolr unknown handler: geo

Posted by Dennis Gearon <ge...@sbcglobal.net>.
How functional is spatial in 3.x?
Dennis Gearon

Signature Warning
----------------
EARTH has a Right To Life,
  otherwise we all die.

Read 'Hot, Flat, and Crowded'
Laugh at http://www.yert.com/film.php


--- On Fri, 9/24/10, Grant Ingersoll <gs...@apache.org> wrote:

> From: Grant Ingersoll <gs...@apache.org>
> Subject: Re: LocalSolr unknown handler: geo
> To: solr-user@lucene.apache.org
> Date: Friday, September 24, 2010, 5:22 AM
> You're best off to ask on the Local
> Solr mailing list, or have a look at Solr's 3.x and trunk
> branches, which have spatial baked in (although it is still
> improving)
> 
> On Sep 24, 2010, at 5:57 AM, PeterKerk wrote:
> 
> > 
> > I've configured LocalSolr according to description on
> this page:
> > http://www.gissearch.com/localsolr
> > 
> > I use Solr 1.4.1.
> > 
> > I've compiled the LocalSolr jars and put them in the
> Solr lib:
> > \apache-solr-1.4.1\example\solr\lib
> > 
> > The lib folder didnt exist so I created it and put the
> LocalSolr jars in
> > there.
> > 
> > But when I execute the query: 
> > http://localhost:8983/solr/db/select/?indent=on&facet=true&fl=id,lat,lng,title&q=*:*&qt=geo&lat=51.8316819&long=5.815154&radius=500
> > 
> > I get the error: 
> > HTTP ERROR: 400
> > 
> > unknown handler: geo
> > 
> > RequestURI=/solr/db/select/
> > -- 
> > View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1572964.html
> > Sent from the Solr - User mailing list archive at
> Nabble.com.
> 
> --------------------------
> Grant Ingersoll
> http://lucenerevolution.org Apache Lucene/Solr
> Conference, Boston Oct 7-8
> 
> 

Re: LocalSolr unknown handler: geo

Posted by Grant Ingersoll <gs...@apache.org>.
You're best off to ask on the Local Solr mailing list, or have a look at Solr's 3.x and trunk branches, which have spatial baked in (although it is still improving)

On Sep 24, 2010, at 5:57 AM, PeterKerk wrote:

> 
> I've configured LocalSolr according to description on this page:
> http://www.gissearch.com/localsolr
> 
> I use Solr 1.4.1.
> 
> I've compiled the LocalSolr jars and put them in the Solr lib:
> \apache-solr-1.4.1\example\solr\lib
> 
> The lib folder didnt exist so I created it and put the LocalSolr jars in
> there.
> 
> But when I execute the query: 
> http://localhost:8983/solr/db/select/?indent=on&facet=true&fl=id,lat,lng,title&q=*:*&qt=geo&lat=51.8316819&long=5.815154&radius=500
> 
> I get the error: 
> HTTP ERROR: 400
> 
> unknown handler: geo
> 
> RequestURI=/solr/db/select/
> -- 
> View this message in context: http://lucene.472066.n3.nabble.com/LocalSolr-unknown-handler-geo-tp1572964p1572964.html
> Sent from the Solr - User mailing list archive at Nabble.com.

--------------------------
Grant Ingersoll
http://lucenerevolution.org Apache Lucene/Solr Conference, Boston Oct 7-8