org.elasticsearch.search.facet.geodistance
Class GeoDistanceFacetCollector
java.lang.Object
org.apache.lucene.search.Collector
org.elasticsearch.search.facet.FacetCollector
org.elasticsearch.search.facet.AbstractFacetCollector
org.elasticsearch.search.facet.geodistance.GeoDistanceFacetCollector
- Direct Known Subclasses:
- ScriptGeoDistanceFacetCollector, ValueGeoDistanceFacetCollector
public class GeoDistanceFacetCollector
- extends AbstractFacetCollector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
indexFieldName
protected final java.lang.String indexFieldName
lat
protected final double lat
lon
protected final double lon
unit
protected final DistanceUnit unit
geoDistance
protected final GeoDistance geoDistance
fieldDataCache
protected final FieldDataCache fieldDataCache
fieldData
protected GeoPointFieldData fieldData
entries
protected final GeoDistanceFacet.Entry[] entries
aggregator
protected GeoPointFieldData.ValueInDocProc aggregator
GeoDistanceFacetCollector
public GeoDistanceFacetCollector(java.lang.String facetName,
java.lang.String fieldName,
double lat,
double lon,
DistanceUnit unit,
GeoDistance geoDistance,
GeoDistanceFacet.Entry[] entries,
SearchContext context)
doSetNextReader
protected void doSetNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
throws java.io.IOException
- Specified by:
doSetNextReader
in class AbstractFacetCollector
- Throws:
java.io.IOException
doCollect
protected void doCollect(int doc)
throws java.io.IOException
- Specified by:
doCollect
in class AbstractFacetCollector
- Throws:
java.io.IOException
facet
public Facet facet()
- Specified by:
facet
in class FacetCollector