Package io.goobi.viewer.model.search
Interface IFacetItem
- All Known Implementing Classes:
FacetItem,GeoFacetItem
public interface IFacetItem
- Author:
- Florian Alpers
-
Method Summary
Modifier and TypeMethodDescriptionlonggetCount()getField()getLabel()getLink()getType()getValue()booleanbooleanbooleanisGroup()booleansetCount(long count) voidsetExcluded(boolean excluded) voidsetFacetQuery(String facetQuery) voidsetGroup(boolean group) voidvoidsetTranslatedLabel(String translatedLabel) voidvoid
-
Method Details
-
getQueryEscapedLink
String getQueryEscapedLink() -
getEscapedLink
String getEscapedLink() -
getUrlEscapedLink
String getUrlEscapedLink() -
getExcludeUrlEscapedLink
String getExcludeUrlEscapedLink()- Returns:
- the URL-encoded facet link prefixed with the exclusion marker, for building "exclude this value" links
-
getType
FacetItem.FacetType getType() -
getFacetQuery
String getFacetQuery()- Returns:
- for
FacetItem.FacetType.QUERYitems, the pre-built Solr query used as this facet's filter query; null otherwise
-
setFacetQuery
- Parameters:
facetQuery- the pre-built Solr query to use as this facet's filter query (forFacetItem.FacetType.QUERYitems)
-
getField
String getField() -
setField
-
getFullValue
String getFullValue() -
getValue
String getValue() -
setValue
-
getValue2
String getValue2() -
setValue2
-
getLink
String getLink() -
setLink
-
getLabel
String getLabel() -
setLabel
-
getTranslatedLabel
String getTranslatedLabel() -
setTranslatedLabel
-
getCount
long getCount() -
setCount
-
isGroup
boolean isGroup() -
setGroup
-
isHierarchial
boolean isHierarchial() -
isBooleanType
boolean isBooleanType() -
isExcluded
boolean isExcluded()- Returns:
- true if this facet excludes (negates) matching documents instead of including them
-
setExcluded
void setExcluded(boolean excluded) - Parameters:
excluded- true to make this facet exclude (negate) matching documents
-