: I would think I could index a lat,lon pair into a GeoHashField (that : works) and then retrieve the field value to see the computed geohash. ... : What am I missing - how can I retrieve the hash?
I don't think it's designed to work that way. GeoHashField provides GeoHash based search support for lat/lon values through it's internal (indexed) representaiton -- much like TrieLongField provides efficient range queries using trie encoding -- but the "stored" value is still the lat/lon pair (just as a TrieLongField is still the long value) If you want to store/retrive a raq GeoHash string, i think you have to compute it yourself (or put the logic in an UpdateProcessor). org.apache.lucene.spatial.geohash.GeoHashUtils should take care of all the heavy lifting for you. -Hoss