Class GeohashFunction

java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.solr.search.function.distance.GeohashFunction

@Deprecated public class GeohashFunction extends org.apache.lucene.queries.function.ValueSource
Deprecated.
Takes in a latitude and longitude ValueSource and produces a GeoHash.

Ex: geohash(lat, lon)

Note, there is no reciprocal function for this.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.lucene.queries.function.ValueSource
    Deprecated.
     
    protected org.apache.lucene.queries.function.ValueSource
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeohashFunction(org.apache.lucene.queries.function.ValueSource lat, org.apache.lucene.queries.function.ValueSource lon)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
     
    boolean
    Deprecated.
     
    org.apache.lucene.queries.function.FunctionValues
    getValues(Map<Object,Object> context, org.apache.lucene.index.LeafReaderContext readerContext)
    Deprecated.
     
    int
    Deprecated.
     
    protected String
    Deprecated.
     

    Methods inherited from class org.apache.lucene.queries.function.ValueSource

    asDoubleValuesSource, asLongValuesSource, createWeight, fromDoubleValuesSource, getSortField, newContext, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • lat

      protected org.apache.lucene.queries.function.ValueSource lat
      Deprecated.
    • lon

      protected org.apache.lucene.queries.function.ValueSource lon
      Deprecated.
  • Constructor Details

    • GeohashFunction

      public GeohashFunction(org.apache.lucene.queries.function.ValueSource lat, org.apache.lucene.queries.function.ValueSource lon)
      Deprecated.
  • Method Details

    • name

      protected String name()
      Deprecated.
    • getValues

      public org.apache.lucene.queries.function.FunctionValues getValues(Map<Object,Object> context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
      Deprecated.
      Specified by:
      getValues in class org.apache.lucene.queries.function.ValueSource
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Deprecated.
      Specified by:
      equals in class org.apache.lucene.queries.function.ValueSource
    • hashCode

      public int hashCode()
      Deprecated.
      Specified by:
      hashCode in class org.apache.lucene.queries.function.ValueSource
    • description

      public String description()
      Deprecated.
      Specified by:
      description in class org.apache.lucene.queries.function.ValueSource