Class SearchRangeFacet
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.search.facet.SearchRangeFacet
-
-
Constructor Summary
Constructors Constructor Description SearchRangeFacet()SearchRangeFacet(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)BigDecimal[]center()booleanequals(Object o)GeoLocationgetCenter()The mode of the distribution, specified as a latitude-longitude pairStringgetFieldName()The field from your schema upon which to apply your facet.StringgetName()Name given to facetList<Range>getRanges()An array of range objectsStringgetType()Type of facetGeoLocation.UnitgetUnit()The base unit of measurementinthashCode()SearchRangeFacetsetCenter(GeoLocation center)The mode of the distribution, specified as a latitude-longitude pairSearchRangeFacetsetFieldName(String fieldName)Set the field upon which to apply your facet.SearchRangeFacetsetName(String name)Name given to facetSearchRangeFacetsetRanges(List<Range> ranges)An array of range objectsSearchRangeFacetsetUnit(GeoLocation.Unit unit)The base unit of measurementStringtoString()
-
-
-
Constructor Detail
-
SearchRangeFacet
public SearchRangeFacet()
-
SearchRangeFacet
public SearchRangeFacet(String fieldName)
-
-
Method Detail
-
center
public BigDecimal[] center()
-
getFieldName
public String getFieldName()
Description copied from interface:FacetThe field from your schema upon which to apply your facet.- Specified by:
getFieldNamein interfaceFacet- Returns:
- The field name
-
getName
public String getName()
Name given to facet
-
getCenter
public GeoLocation getCenter()
The mode of the distribution, specified as a latitude-longitude pair- Returns:
- the center
-
getUnit
public GeoLocation.Unit getUnit()
The base unit of measurement- Returns:
- the unit
-
setFieldName
public SearchRangeFacet setFieldName(String fieldName)
Description copied from interface:FacetSet the field upon which to apply your facet.- Specified by:
setFieldNamein interfaceFacet- Parameters:
fieldName- The name of the field- Returns:
this.
-
setName
public SearchRangeFacet setName(String name)
Name given to facet- Parameters:
name- The name- Returns:
this.
-
setCenter
public SearchRangeFacet setCenter(GeoLocation center)
The mode of the distribution, specified as a latitude-longitude pair- Parameters:
center- the center- Returns:
this.
-
setUnit
public SearchRangeFacet setUnit(GeoLocation.Unit unit)
The base unit of measurement- Parameters:
unit- The unit- Returns:
this.
-
setRanges
public SearchRangeFacet setRanges(List<Range> ranges)
An array of range objects- Parameters:
ranges- The ranges- Returns:
this.
-
canEqual
protected boolean canEqual(Object other)
-
-