org.elasticsearch.search.facet.geodistance
Class GeoDistanceFacetProcessor

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.search.facet.geodistance.GeoDistanceFacetProcessor
All Implemented Interfaces:
FacetProcessor

public class GeoDistanceFacetProcessor
extends AbstractComponent
implements FacetProcessor


Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
GeoDistanceFacetProcessor(Settings settings)
           
 
Method Summary
 FacetCollector parse(java.lang.String facetName, XContentParser parser, SearchContext context)
           
 Facet reduce(java.lang.String name, java.util.List<Facet> facets)
           
 java.lang.String[] types()
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoDistanceFacetProcessor

@Inject
public GeoDistanceFacetProcessor(Settings settings)
Method Detail

types

public java.lang.String[] types()
Specified by:
types in interface FacetProcessor

parse

public FacetCollector parse(java.lang.String facetName,
                            XContentParser parser,
                            SearchContext context)
                     throws java.io.IOException
Specified by:
parse in interface FacetProcessor
Throws:
java.io.IOException

reduce

public Facet reduce(java.lang.String name,
                    java.util.List<Facet> facets)
Specified by:
reduce in interface FacetProcessor