org.apache.solr.search.function.distance
Class GeoDistValueSourceParser

java.lang.Object
  extended by org.apache.solr.search.ValueSourceParser
      extended by 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(com.spatial4j.core.shape.Point,double).


Field Summary
 
Fields inherited from class org.apache.solr.search.ValueSourceParser
standardValueSourceParsers
 
Constructor Summary
GeoDistValueSourceParser()
           
 
Method Summary
 ValueSource parse(FunctionQParser fp)
          Parse the user input into a ValueSource.
 
Methods inherited from class org.apache.solr.search.ValueSourceParser
addParser, addParser, 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-2014 Apache Software Foundation. All Rights Reserved.