Migrate Solr 3.4 w/ solr-1255 GeoHash to Solr 4

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Migrate Solr 3.4 w/ solr-1255 GeoHash to Solr 4

Harley
I'm having trouble migrating the geohash fields from my Solr 3.4 schema to the Solr 4 schema.

 
this is the 3.4 type and class:
<fieldType name="geohash" class="solr2155.solr.schema.GeoHashField" length="12"/>

is the below Solr 4 spatial type the right configuration to implement data being stored in fields once using the "geohash" type and class in the above solr 3.4 field type?  

    <fieldType name="geohash" class="solr.SpatialRecursivePrefixTreeFieldType"
        geo="true" distErrPct="0.025" maxDistErr="0.000009" units="degrees" prefixTree="geohash" />

 is the units="degrees" degree decimal?  example: 21.0345
Reply | Threaded
Open this post in threaded view
|

Re: [Dev] Migrate Solr 3.4 w/ solr-1255 GeoHash to Solr 4

dsmiley
Hi Harley.  

This is a question for the solr-user list.
See: http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
In SOLR-2155 you had to explicitly specify the prefix encoding length, whereas in Solr 4 you specify how much precision you need and it figures out what the length is that satisfies that.  When you first use the field, it'll log what the derived levels figure is (if you care).  The units are decimal degrees (0-180 from no distance to reverse side of the globe -- aka latitudinal degrees).

~ David

On Mar 6, 2013, at 5:39 PM, Harley <[hidden email]> wrote:

> I'm having trouble migrating the geohash fields from my Solr 3.4 schema to
> the Solr 4 schema.
>
>
> this is the 3.4 type and class:
> <fieldType name="geohash" class="solr2155.solr.schema.GeoHashField"
> length="12"/>
>
> is the below Solr 4 spatial type the right configuration to implement data
> being stored in fields once using the "geohash" type and class in the above
> solr 3.4 field type?  
>
>    <fieldType name="geohash"
> class="solr.SpatialRecursivePrefixTreeFieldType"
>        geo="true" distErrPct="0.025" maxDistErr="0.000009" units="degrees"
> prefixTree="geohash" />
>
> is the units="degrees" degree decimal?  example: 21.0345
>
>
>
> --
> View this message in context: http://spatial4j.16575.n6.nabble.com/Migrate-Solr-3-4-w-solr-1255-GeoHash-to-Solr-4-tp5001139.html
> Sent from the Spatial4j mailing list archive at Nabble.com.
> _______________________________________________
> dev mailing list
> [hidden email]
> http://lists.spatial4j.com/listinfo.cgi/dev-spatial4j.com

_______________________________________________
dev mailing list
[hidden email]
http://lists.spatial4j.com/listinfo.cgi/dev-spatial4j.com
Reply | Threaded
Open this post in threaded view
|

Re: [Dev] Migrate Solr 3.4 w/ solr-1255 GeoHash to Solr 4

Harley
Roger that.