public interface SearchFacet extends Serializable, MultiTenantCloneable<SearchFacet>
Modifier and Type | Method and Description |
---|---|
Boolean |
getCanMultiselect()
Gets whether or not you can multiselect values for this Facet
|
String |
getFacetFieldType()
This String represents the FieldType for the given SearchFacet.
|
Field |
getField()
Returns the field associated with this facet.
|
IndexFieldType |
getFieldType()
The main relationship to the rest of the search index entities
|
Long |
getId()
Returns the internal id
|
String |
getLabel()
Gets the label of this SearchFacet.
|
String |
getName()
Gets the name of this SearchFacet.
|
List<RequiredFacet> |
getRequiredFacets() |
Boolean |
getRequiresAllDependentFacets()
This boolean controls whether or not this particular facet requires one of the dependent facets to be active, or if
it requires all of the dependent facets to be active.
|
Integer |
getSearchDisplayPriority()
Gets the display priority of this SearchFacet on search result pages
|
List<SearchFacetRange> |
getSearchFacetRanges()
Gets the applicable ranges for this search facet, if any are specified.
|
Boolean |
getShowOnSearch()
Gets a boolean that specifies whether or not this SearchFacet should be displayed on search
result pages in addition to category pages
|
Boolean |
getUseFacetRanges()
Gets whether or not this facet uses facet ranges
|
void |
setCanMultiselect(Boolean canMultiselect)
Sets whether or not you can multiselect values for this Facet.
|
void |
setFieldType(IndexFieldType fieldType) |
void |
setId(Long id)
Sets the internal id
|
void |
setLabel(String label)
Sets the label
|
void |
setName(String name)
Sets the name
|
void |
setRequiredFacets(List<RequiredFacet> requiredFacets)
Sets the list of facets which this facet depends on.
|
void |
setRequiresAllDependentFacets(Boolean requiresAllDependentFacets)
Sets whether or not all dependent facets must be active, or if only one is necessary
|
void |
setSearchDisplayPriority(Integer searchDisplayPriority)
Sets the display priority on search result pages
|
void |
setSearchFacetRanges(List<SearchFacetRange> searchFacetRanges)
Sets the SearchFacetRanges
Note: This method will set ALL search facet ranges
|
void |
setShowOnSearch(Boolean showOnSearch)
Sets showOnSearch
|
void |
setUseFacetRanges(Boolean useFacetRanges)
Sets useFacetRanges
|
createOrRetrieveCopyInstance
Long getId()
void setId(Long id)
id
- IndexFieldType getFieldType()
#getField()}
,
#getFacetFieldType()}
void setFieldType(IndexFieldType fieldType)
Field getField()
Returns the field associated with this facet.
This is a convenience method for
getFieldType().getIndexField().getField()
String getFacetFieldType()
This String represents the FieldType for the given SearchFacet. This is the FieldType that will be used when this Field is indexed in Solr
This is a convience method for
getFieldType().getFieldType().getType()
String getName()
String getLabel()
void setLabel(String label)
label
- getLabel()
Boolean getShowOnSearch()
void setShowOnSearch(Boolean showOnSearch)
showOnSearch
- getShowOnSearch()
Integer getSearchDisplayPriority()
void setSearchDisplayPriority(Integer searchDisplayPriority)
searchDisplayPriority
- void setCanMultiselect(Boolean canMultiselect)
canMultiselect
- Boolean getCanMultiselect()
Boolean getUseFacetRanges()
void setUseFacetRanges(Boolean useFacetRanges)
getUseFacetRanges()
List<SearchFacetRange> getSearchFacetRanges()
void setSearchFacetRanges(List<SearchFacetRange> searchFacetRanges)
searchFacetRanges
- getSearchFacetRanges()
List<RequiredFacet> getRequiredFacets()
getRequiresAllDependentFacets()
void setRequiredFacets(List<RequiredFacet> requiredFacets)
dependentFacets
- Boolean getRequiresAllDependentFacets()
getRequiredFacets()
void setRequiresAllDependentFacets(Boolean requiresAllDependentFacets)
requiresAllDependentFacets
- Copyright © 2019. All rights reserved.