Spring Data Solr

org.springframework.data.solr.core.query
Class GeoDistanceFunction

java.lang.Object
  extended by org.springframework.data.solr.core.query.AbstractFunction
      extended by org.springframework.data.solr.core.query.GeoDistanceFunction
All Implemented Interfaces:
Function

public class GeoDistanceFunction
extends AbstractFunction

Implementation of geodist(sfield, latitude, longitude)

Since:
1.1
Author:
Christoph Stobl

Nested Class Summary
static class GeoDistanceFunction.Builder
           
 
Method Summary
static GeoDistanceFunction.Builder distanceFrom(Field field)
          Creates new GeoDistanceFunction.Builder
static GeoDistanceFunction.Builder distanceFrom(String fieldname)
          Creates new GeoDistanceFunction.Builder
 String getOperation()
          solr readable representation of function
 
Methods inherited from class org.springframework.data.solr.core.query.AbstractFunction
addArgument, getArguments, hasArguments, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

distanceFrom

public static GeoDistanceFunction.Builder distanceFrom(String fieldname)
Creates new GeoDistanceFunction.Builder

Parameters:
fieldname -
Returns:

distanceFrom

public static GeoDistanceFunction.Builder distanceFrom(Field field)
Creates new GeoDistanceFunction.Builder

Parameters:
field - must not be null
Returns:

getOperation

public String getOperation()
Description copied from interface: Function
solr readable representation of function

Returns:

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.