Package org.alfresco.search.model
Class RequestFacetField
- java.lang.Object
-
- org.alfresco.search.model.RequestFacetField
-
@Validated public class RequestFacetField extends Object
A simple facet field
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestFacetField.MethodEnumGets or Sets methodstatic classRequestFacetField.SortEnumGets or Sets sort
-
Constructor Summary
Constructors Constructor Description RequestFacetField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestFacetFieldaddExcludeFiltersItem(String excludeFiltersItem)booleanequals(Object o)RequestFacetFieldexcludeFilters(List<String> excludeFilters)RequestFacetFieldfacetEnumCacheMinDf(Integer facetEnumCacheMinDf)RequestFacetFieldfield(String field)List<String>getExcludeFilters()Filter Queries with tags listed here will not be included in facet counts.IntegergetFacetEnumCacheMinDf()Get facetEnumCacheMinDfStringgetField()The facet fieldStringgetLabel()A label to include in place of the facet fieldIntegergetLimit()Get limitRequestFacetField.MethodEnumgetMethod()Get methodIntegergetMincount()The minimum count required for a facet field to be included in the response.IntegergetOffset()Get offsetStringgetPrefix()Restricts the possible constraints to only indexed values with a specified prefix.RequestFacetField.SortEnumgetSort()Get sortinthashCode()BooleanisMissing()When true, count results that match the query but which have no facet value for the field (in addition to the Term-based constraints).RequestFacetFieldlabel(String label)RequestFacetFieldlimit(Integer limit)RequestFacetFieldmethod(RequestFacetField.MethodEnum method)RequestFacetFieldmincount(Integer mincount)RequestFacetFieldmissing(Boolean missing)RequestFacetFieldoffset(Integer offset)RequestFacetFieldprefix(String prefix)voidsetExcludeFilters(List<String> excludeFilters)voidsetFacetEnumCacheMinDf(Integer facetEnumCacheMinDf)voidsetField(String field)voidsetLabel(String label)voidsetLimit(Integer limit)voidsetMethod(RequestFacetField.MethodEnum method)voidsetMincount(Integer mincount)voidsetMissing(Boolean missing)voidsetOffset(Integer offset)voidsetPrefix(String prefix)voidsetSort(RequestFacetField.SortEnum sort)RequestFacetFieldsort(RequestFacetField.SortEnum sort)StringtoString()
-
-
-
Method Detail
-
field
public RequestFacetField field(String field)
-
getField
public String getField()
The facet field- Returns:
- field
-
setField
public void setField(String field)
-
label
public RequestFacetField label(String label)
-
getLabel
public String getLabel()
A label to include in place of the facet field- Returns:
- label
-
setLabel
public void setLabel(String label)
-
prefix
public RequestFacetField prefix(String prefix)
-
getPrefix
public String getPrefix()
Restricts the possible constraints to only indexed values with a specified prefix.- Returns:
- prefix
-
setPrefix
public void setPrefix(String prefix)
-
sort
public RequestFacetField sort(RequestFacetField.SortEnum sort)
-
getSort
public RequestFacetField.SortEnum getSort()
Get sort- Returns:
- sort
-
setSort
public void setSort(RequestFacetField.SortEnum sort)
-
method
public RequestFacetField method(RequestFacetField.MethodEnum method)
-
getMethod
public RequestFacetField.MethodEnum getMethod()
Get method- Returns:
- method
-
setMethod
public void setMethod(RequestFacetField.MethodEnum method)
-
missing
public RequestFacetField missing(Boolean missing)
-
isMissing
public Boolean isMissing()
When true, count results that match the query but which have no facet value for the field (in addition to the Term-based constraints).- Returns:
- missing
-
setMissing
public void setMissing(Boolean missing)
-
limit
public RequestFacetField limit(Integer limit)
-
getLimit
public Integer getLimit()
Get limit- Returns:
- limit
-
setLimit
public void setLimit(Integer limit)
-
offset
public RequestFacetField offset(Integer offset)
-
getOffset
public Integer getOffset()
Get offset- Returns:
- offset
-
setOffset
public void setOffset(Integer offset)
-
mincount
public RequestFacetField mincount(Integer mincount)
-
getMincount
public Integer getMincount()
The minimum count required for a facet field to be included in the response.- Returns:
- mincount
-
setMincount
public void setMincount(Integer mincount)
-
facetEnumCacheMinDf
public RequestFacetField facetEnumCacheMinDf(Integer facetEnumCacheMinDf)
-
getFacetEnumCacheMinDf
public Integer getFacetEnumCacheMinDf()
Get facetEnumCacheMinDf- Returns:
- facetEnumCacheMinDf
-
setFacetEnumCacheMinDf
public void setFacetEnumCacheMinDf(Integer facetEnumCacheMinDf)
-
excludeFilters
public RequestFacetField excludeFilters(List<String> excludeFilters)
-
addExcludeFiltersItem
public RequestFacetField addExcludeFiltersItem(String excludeFiltersItem)
-
getExcludeFilters
public List<String> getExcludeFilters()
Filter Queries with tags listed here will not be included in facet counts. This is used for multi-select facetting.- Returns:
- excludeFilters
-
-