Class ValueFacet
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.search.facet.ValueFacet
-
-
Constructor Summary
Constructors Constructor Description ValueFacet()ValueFacet(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFieldName()The field from your schema upon which to apply your facet.StringgetName()Name given to facetIntegergetSize()How many facets would you like to return? Can be between 1 and 250 (or the value of the app_search.engine.total_facet_values_returned.limit configuration setting).FacetSortFieldgetSortField()Sort field.Sort.OrdergetSortOrder()Sort Order.FacetTypegetType()Type of facetValueFacetsetFieldName(String fieldName)Set the field upon which to apply your facet.ValueFacetsetName(String name)Name given to facetValueFacetsetSize(Integer size)How many facets would you like to return? Can be between 1 and 250 (or the value of the app_search.engine.total_facet_values_returned.limit configuration setting).ValueFacetsetSortField(FacetSortField sortField)Sort field.ValueFacetsetSortOrder(Sort.Order sortOrder)Sort Order.
-
-
-
Constructor Detail
-
ValueFacet
public ValueFacet()
-
ValueFacet
public ValueFacet(String fieldName)
-
-
Method Detail
-
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
-
getSize
public Integer getSize()
How many facets would you like to return? Can be between 1 and 250 (or the value of the app_search.engine.total_facet_values_returned.limit configuration setting). 10 facets is the default.- Returns:
- The number of facets to return
-
getSortField
public FacetSortField getSortField()
Sort field. Either count or value- Returns:
- The sort field
-
getSortOrder
public Sort.Order getSortOrder()
Sort Order. Either asc or desc- Returns:
- The sortOrder
-
setFieldName
public ValueFacet 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 ValueFacet setName(String name)
Name given to facet- Parameters:
name- The name- Returns:
this.
-
setSize
public ValueFacet setSize(Integer size)
How many facets would you like to return? Can be between 1 and 250 (or the value of the app_search.engine.total_facet_values_returned.limit configuration setting). 10 facets is the default.- Parameters:
size- The number of facets to return- Returns:
this.
-
setSortField
public ValueFacet setSortField(FacetSortField sortField)
Sort field. Either count or value- Parameters:
sortField- The sort field- Returns:
this.
-
setSortOrder
public ValueFacet setSortOrder(Sort.Order sortOrder)
Sort Order. Either asc or desc- Parameters:
sortOrder- the sort order- Returns:
this.
-
-