Class SearchRangeFacet
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.search.facet.SearchRangeFacet
-
-
Constructor Summary
Constructors Constructor Description SearchRangeFacet()Create an empty range facetSearchRangeFacet(String fieldName)Create a range facet with a name and empty range
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)BigDecimal[]center()In the case of a Geolocation facet range, this is the center point of the rangebooleanequals(Object o)GeolocationgetCenter()The mode of the distribution, specified as a latitude-longitude pairStringgetFieldName()The field name of the facetStringgetName()Name given to facetList<Range>getRanges()An array of range objectsFacetTypegetType()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)The field name of the facetSearchRangeFacetsetName(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()
Create an empty range facet
-
SearchRangeFacet
public SearchRangeFacet(String fieldName)
Create a range facet with a name and empty range- Parameters:
fieldName- The name of the field to facet on
-
-
Method Detail
-
center
public BigDecimal[] center()
In the case of a Geolocation facet range, this is the center point of the range- Returns:
- An array containing [longitude,latitude] of the center point
-
getFieldName
public String getFieldName()
The field name of the 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)
The field name of the facet- Specified by:
setFieldNamein interfaceFacet- Parameters:
fieldName- the field name- 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)
-
-