Hi David Smiley: We use a 3rd party software to load Solr 3.4 so the behavior needs to be transparent with the migration to 4.1, but I was expecting that I would need to rebuild the solr database.
I moved/added the old solr 3.4 core to solr 4.1, with only minor modification (commented out the old spatial type and add the new) and I was surprised I was able to query the data. The geohash is displaying as a hash, and not coordinate, so I am checking my configuration on the geospatial class. Harley Powers Parks, GISP Booz | Allen | Hamilton Geospatial Visualization Web Developer WEB: https://www.apan.org USPACOM J73/APAN Pacific Warfighting Center Ford Island p: 808.472.7752 c: 808.377.0632 apan: harley.pa...@apan-info.net nipr: harley.parks....@pacom.mil CONTRACTOR: Booz | Allen | Hamilton e: parks_har...@bah.com -----Original Message----- From: David Smiley (@MITRE.org) [mailto:dsmi...@mitre.org] Sent: Wednesday, March 06, 2013 9:34 PM To: solr-user@lucene.apache.org Subject: Re: Migrate Solr 3.4 w/ solr-1255 GeoHash to Solr 4 Hi Harley, 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). You can name the field type whatever you want, but I don't recommend "geohash" because this conflates it with an actual GeoHashField, and also it's more of an internal detail. You said you're having trouble with the migration... but what is the trouble? ~ David Harley 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 > > > > Harley Powers Parks, GISP ----- Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/Migrate-Solr-3-4-w-solr-1255-GeoHash-to-Solr-4-tp4045416p4045470.html Sent from the Solr - User mailing list archive at Nabble.com.