org.apache.solr.search.function.distance

## Class GeoDistValueSourceParser

- java.lang.Object
- - org.apache.solr.search.ValueSourceParser
  - - org.apache.solr.search.function.distance.GeoDistValueSourceParser

- All Implemented Interfaces:
    NamedListInitializedPlugin

      public class GeoDistValueSourceParser
      extends ValueSourceParser

  Parses "geodist" creating `HaversineConstFunction` or `HaversineFunction` or calling `SpatialStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point,double)`.

- - ### Field Summary

    - ### Fields inherited from class org.apache.solr.search.ValueSourceParser

      `standardValueSourceParsers`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `GeoDistValueSourceParser()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ValueSource` | `parse(FunctionQParser fp)` Parse the user input into a ValueSource.

    - ### Methods inherited from class org.apache.solr.search.ValueSourceParser

      `init`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GeoDistValueSourceParser

          public GeoDistValueSourceParser()

  - ### Method Detail

    - #### parse

          public ValueSource parse(FunctionQParser fp)
                            throws SyntaxError

      Description copied from class: `ValueSourceParser`
      Parse the user input into a ValueSource.
      Specified by:
        `parse` in class `ValueSourceParser`
      Throws:
        `SyntaxError`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.