public class FacetSpec extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
FacetSpec.FacetSortSpec
Sort options for facets
|
| Constructor and Description |
|---|
FacetSpec()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FacetSpec |
clone() |
ComparatorFactory |
getCustomComparatorFactory() |
int |
getMaxCount()
Gets the maximum number of choices to return
|
int |
getMinHitCount()
Gets the minimum number of hits a choice would need to have to be returned.
|
FacetSpec.FacetSortSpec |
getOrderBy()
Get the current choice sort order
|
Map<String,String> |
getProperties()
Gets custom properties for the facet search.
|
boolean |
isExpandSelection()
Gets whether we are expanding sibling choices
|
FacetSpec |
setCustomComparatorFactory(ComparatorFactory comparatorFactory) |
FacetSpec |
setExpandSelection(boolean expandSelection)
Sets whether we are expanding sibling choices
|
FacetSpec |
setMaxCount(int maxCount)
Sets the maximum number of choices to return.
|
FacetSpec |
setMinHitCount(int minCount)
Sets the minimum number of hits a choice would need to have to be returned.
|
FacetSpec |
setOrderBy(FacetSpec.FacetSortSpec order)
Sets the choice sort order
|
FacetSpec |
setProperties(Map<String,String> properties)
Sets custom properties for the facet search.
|
String |
toString() |
public FacetSpec setCustomComparatorFactory(ComparatorFactory comparatorFactory)
public ComparatorFactory getCustomComparatorFactory()
public FacetSpec setMinHitCount(int minCount)
minCount - minimum countgetMinHitCount()public int getMinHitCount()
setMinHitCount(int)public FacetSpec.FacetSortSpec getOrderBy()
setOrderBy(FacetSortSpec)public FacetSpec setOrderBy(FacetSpec.FacetSortSpec order)
order - sort ordergetOrderBy()public int getMaxCount()
setMaxCount(int)public FacetSpec setMaxCount(int maxCount)
maxCount - max number of choices to return, default = 0 which means allgetMaxCount()public boolean isExpandSelection()
setExpandSelection(boolean)public FacetSpec setExpandSelection(boolean expandSelection)
expandSelection - indicating whether to expand sibling choices.isExpandSelection()public Map<String,String> getProperties()
public FacetSpec setProperties(Map<String,String> properties)
properties - Copyright © 2005–2013. All rights reserved.