org.apache.solr.search.function.distance
Class GeohashFunction
java.lang.Object
org.apache.solr.search.function.ValueSource
org.apache.solr.search.function.distance.GeohashFunction
- All Implemented Interfaces:
- Serializable
public class GeohashFunction
- extends ValueSource
Takes in a latitude and longitude ValueSource and produces a GeoHash.
Ex: geohash(lat, lon)
Note, there is no reciprocal function for this.
- See Also:
- Serialized Form
lat
protected ValueSource lat
lon
protected ValueSource lon
GeohashFunction
public GeohashFunction(ValueSource lat,
ValueSource lon)
name
protected String name()
getValues
public DocValues getValues(Map context,
org.apache.lucene.index.IndexReader reader)
throws IOException
- Description copied from class:
ValueSource
- Gets the values for this reader and the context that was previously
passed to createWeight()
- Overrides:
getValues
in class ValueSource
- Throws:
IOException
equals
public boolean equals(Object o)
- Specified by:
equals
in class ValueSource
hashCode
public int hashCode()
- Specified by:
hashCode
in class ValueSource
description
public String description()
- Description copied from class:
ValueSource
- description of field, used in explain()
- Specified by:
description
in class ValueSource
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.