public class RelatedTermFacet extends ValueFacet implements com.exalead.util.Checkable, java.io.Serializable
ValueFacet.Transformer<T>, ValueFacet.Visitor
Facet.FromDataModel, Facet.Implementation, Facet.RefinementPolicy, Facet.Type
FacetView.SortFunction
Modifier and Type | Field and Description |
---|---|
java.lang.String |
blacklist |
double |
corpusLowPassFilter |
static double |
DEFAULT_CORPUS_LOW_PASS_FILTER |
static double |
DEFAULT_LOCAL_LOW_PASS_FILTER |
static int |
DEFAULT_MAX_RELATED_TERMS_HITS_PER_SLICE |
static int |
DEFAULT_MIN_CORPUS_FREQUENCY |
java.lang.String |
dictionary |
double |
localLowPassFilter |
int |
maxRelatedTermsHitsPerSlice |
int |
minCorpusFrequency |
DEFAULT_HITS_MAX_CATEGORIES, field, hitsMaxCategories
virtualRoot
additionalFacetView, aggregationFunction, dataModelClass, dataModelProperty, dataModelState, DEFAULT_IMPLEMENTATION, DEFAULT_IN_HITS, DEFAULT_IN_NAVIGATION, DEFAULT_MAX_SLICE_CATEGORIES, DEFAULT_REFINEMENT_POLICY, fromDataModel, id, implementation, index, inHits, inNavigation, maxSliceCategories, refinementPolicy, type
aggregateScores, DEFAULT_AGGREGATE_SCORES, DEFAULT_MAX_CATEGORIES, DEFAULT_MAX_CATEGORIES_PER_LEVEL, DEFAULT_MIN_DOCS_PER_CATEGORY, DEFAULT_REVERSE, DEFAULT_SORT_FUNCTION, explicitSortOrderValues, maxCategories, maxCategoriesPerLevel, minDocsPerCategory, reverse, sortAggregationFunction, sortFunction
Constructor and Description |
---|
RelatedTermFacet() |
RelatedTermFacet(RelatedTermFacet o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(Facet.Transformer<T> transformer,
T[] t) |
void |
accept(Facet.Visitor visitor) |
<T> T |
accept(FacetView.Transformer<T> transformer,
T[] t) |
void |
accept(FacetView.Visitor visitor) |
<T> T |
accept(ValueFacet.Transformer<T> transformer,
T[] t) |
void |
accept(ValueFacet.Visitor visitor) |
<T> T |
accept(VirtualFacet.Transformer<T> transformer,
T[] t) |
void |
accept(VirtualFacet.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this RelatedTermFacet.
|
static RelatedTermFacet |
fromString(java.lang.String s)
String representation of this RelatedTermFacet.
|
java.lang.String |
getBlacklist()
The related-terms blocklist.
|
double |
getCorpusLowPassFilter()
Filters out terms occurring more than this threshold in the whole index.
|
java.lang.String |
getDictionary()
The dictionary containing keywords.
|
double |
getLocalLowPassFilter()
Filters out terms occurring more than this threshold in the result set.
|
int |
getMaxRelatedTermsHitsPerSlice()
Maximum number of hits per slice used to compute related terms synthesis.
|
int |
getMinCorpusFrequency()
Minimum number of occurrences in the whole index for a term to be possibly selected for synthesis.
|
RelatedTermFacet |
makeCopy()
Creates and returns a deep copy of this RelatedTermFacet.
|
static RelatedTermFacet |
readFrom(java.io.InputStream is)
Read this RelatedTermFacet from an XML fragment.
|
void |
setBlacklist(java.lang.String blacklist)
The related-terms blocklist.
|
void |
setCorpusLowPassFilter(double corpusLowPassFilter)
Filters out terms occurring more than this threshold in the whole index.
|
void |
setDictionary(java.lang.String dictionary)
The dictionary containing keywords.
|
void |
setLocalLowPassFilter(double localLowPassFilter)
Filters out terms occurring more than this threshold in the result set.
|
void |
setMaxRelatedTermsHitsPerSlice(int maxRelatedTermsHitsPerSlice)
Maximum number of hits per slice used to compute related terms synthesis.
|
void |
setMinCorpusFrequency(int minCorpusFrequency)
Minimum number of occurrences in the whole index for a term to be possibly selected for synthesis.
|
java.lang.String |
toString()
String representation of this RelatedTermFacet.
|
RelatedTermFacet |
withAdditionalFacetView(AdditionalFacetView... __values) |
RelatedTermFacet |
withAdditionalFacetView(java.util.Collection<AdditionalFacetView> __values) |
RelatedTermFacet |
withAggregateScores(boolean aggregateScores)
Deprecated.
|
RelatedTermFacet |
withAggregateScores(java.lang.Boolean aggregateScores)
Deprecated.
|
RelatedTermFacet |
withAggregationFunction(AggregationFunction... __values)
A numerical computation to perform on hits matching each value of the facet.
|
RelatedTermFacet |
withAggregationFunction(java.util.Collection<AggregationFunction> __values) |
RelatedTermFacet |
withBlacklist(java.lang.String blacklist) |
RelatedTermFacet |
withCorpusLowPassFilter(double corpusLowPassFilter) |
RelatedTermFacet |
withDataModelClass(java.lang.String dataModelClass) |
RelatedTermFacet |
withDataModelProperty(java.lang.String dataModelProperty) |
RelatedTermFacet |
withDataModelState(java.lang.String dataModelState) |
RelatedTermFacet |
withDictionary(java.lang.String dictionary) |
RelatedTermFacet |
withExplicitSortOrderValues(java.lang.String explicitSortOrderValues) |
RelatedTermFacet |
withField(java.lang.String field) |
RelatedTermFacet |
withFromDataModel(Facet fromDataModel) |
RelatedTermFacet |
withHitsMaxCategories(int hitsMaxCategories) |
RelatedTermFacet |
withHitsMaxCategories(java.lang.Integer hitsMaxCategories) |
RelatedTermFacet |
withId(java.lang.String id) |
RelatedTermFacet |
withImplementation(java.lang.String implementation) |
RelatedTermFacet |
withIndex(int index) |
RelatedTermFacet |
withIndex(java.lang.Integer index) |
RelatedTermFacet |
withInHits(boolean inHits) |
RelatedTermFacet |
withInHits(java.lang.Boolean inHits) |
RelatedTermFacet |
withInNavigation(boolean inNavigation) |
RelatedTermFacet |
withInNavigation(java.lang.Boolean inNavigation) |
RelatedTermFacet |
withLocalLowPassFilter(double localLowPassFilter) |
RelatedTermFacet |
withMaxCategories(int maxCategories) |
RelatedTermFacet |
withMaxCategories(java.lang.Integer maxCategories) |
RelatedTermFacet |
withMaxCategoriesPerLevel(int maxCategoriesPerLevel) |
RelatedTermFacet |
withMaxCategoriesPerLevel(java.lang.Integer maxCategoriesPerLevel) |
RelatedTermFacet |
withMaxRelatedTermsHitsPerSlice(int maxRelatedTermsHitsPerSlice) |
RelatedTermFacet |
withMaxRelatedTermsHitsPerSlice(java.lang.Integer maxRelatedTermsHitsPerSlice) |
RelatedTermFacet |
withMaxSliceCategories(int maxSliceCategories) |
RelatedTermFacet |
withMaxSliceCategories(java.lang.Integer maxSliceCategories) |
RelatedTermFacet |
withMinCorpusFrequency(int minCorpusFrequency) |
RelatedTermFacet |
withMinCorpusFrequency(java.lang.Integer minCorpusFrequency) |
RelatedTermFacet |
withMinDocsPerCategory(int minDocsPerCategory) |
RelatedTermFacet |
withMinDocsPerCategory(java.lang.Integer minDocsPerCategory) |
RelatedTermFacet |
withRefinementPolicy(java.lang.String refinementPolicy) |
RelatedTermFacet |
withReverse(boolean reverse) |
RelatedTermFacet |
withReverse(java.lang.Boolean reverse) |
RelatedTermFacet |
withSortAggregationFunction(java.lang.String sortAggregationFunction) |
RelatedTermFacet |
withSortFunction(java.lang.String sortFunction) |
RelatedTermFacet |
withType(java.lang.String type) |
RelatedTermFacet |
withVirtualRoot(java.lang.String virtualRoot) |
void |
writeTo(java.io.OutputStream os)
Write this RelatedTermFacet as an XML fragment
|
getField, getHitsMaxCategories, setField, setHitsMaxCategories
getVirtualRoot, setVirtualRoot
getAdditionalFacetView, getAdditionalFacetViewAsMap, getAdditionalFacetViewById, getAggregationFunction, getAggregationFunctionAsMap, getAggregationFunctionById, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getId, getImplementation, getImplementationAsEnum, getIndex, getMaxSliceCategories, getRefinementPolicy, getRefinementPolicyAsEnum, getType, getTypeAsEnum, isA, isA, isA, isInHits, isInNavigation, isOneOf, isOneOf, isOneOf, removeAdditionalFacetViewById, removeAggregationFunctionById, setDataModelClass, setDataModelProperty, setDataModelState, setFromDataModel, setId, setImplementation, setImplementation, setIndex, setInHits, setInNavigation, setMaxSliceCategories, setRefinementPolicy, setRefinementPolicy, setType, setType
getExplicitSortOrderValues, getMaxCategories, getMaxCategoriesPerLevel, getMinDocsPerCategory, getSortAggregationFunction, getSortFunction, getSortFunctionAsEnum, isA, isAggregateScores, isOneOf, isReverse, setAggregateScores, setExplicitSortOrderValues, setMaxCategories, setMaxCategoriesPerLevel, setMinDocsPerCategory, setReverse, setSortAggregationFunction, setSortFunction, setSortFunction
public java.lang.String dictionary
public int minCorpusFrequency
public static final int DEFAULT_MIN_CORPUS_FREQUENCY
public double corpusLowPassFilter
public static final double DEFAULT_CORPUS_LOW_PASS_FILTER
public double localLowPassFilter
public static final double DEFAULT_LOCAL_LOW_PASS_FILTER
public java.lang.String blacklist
public int maxRelatedTermsHitsPerSlice
public static final int DEFAULT_MAX_RELATED_TERMS_HITS_PER_SLICE
public RelatedTermFacet()
public RelatedTermFacet(RelatedTermFacet o)
public RelatedTermFacet withField(java.lang.String field)
withField
in class ValueFacet
public RelatedTermFacet withHitsMaxCategories(int hitsMaxCategories)
withHitsMaxCategories
in class ValueFacet
public RelatedTermFacet withHitsMaxCategories(java.lang.Integer hitsMaxCategories)
withHitsMaxCategories
in class ValueFacet
public RelatedTermFacet withVirtualRoot(java.lang.String virtualRoot)
withVirtualRoot
in class ValueFacet
public RelatedTermFacet withId(java.lang.String id)
withId
in class ValueFacet
public RelatedTermFacet withType(java.lang.String type)
withType
in class ValueFacet
public RelatedTermFacet withIndex(int index)
withIndex
in class ValueFacet
public RelatedTermFacet withIndex(java.lang.Integer index)
withIndex
in class ValueFacet
public RelatedTermFacet withRefinementPolicy(java.lang.String refinementPolicy)
withRefinementPolicy
in class ValueFacet
public RelatedTermFacet withImplementation(java.lang.String implementation)
withImplementation
in class ValueFacet
public RelatedTermFacet withDataModelState(java.lang.String dataModelState)
withDataModelState
in class ValueFacet
public RelatedTermFacet withFromDataModel(Facet fromDataModel)
withFromDataModel
in class ValueFacet
public RelatedTermFacet withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class ValueFacet
public RelatedTermFacet withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class ValueFacet
public RelatedTermFacet withInNavigation(boolean inNavigation)
withInNavigation
in class ValueFacet
public RelatedTermFacet withInNavigation(java.lang.Boolean inNavigation)
withInNavigation
in class ValueFacet
public RelatedTermFacet withInHits(boolean inHits)
withInHits
in class ValueFacet
public RelatedTermFacet withInHits(java.lang.Boolean inHits)
withInHits
in class ValueFacet
public RelatedTermFacet withAggregationFunction(AggregationFunction... __values)
withAggregationFunction
in class ValueFacet
public RelatedTermFacet withAggregationFunction(java.util.Collection<AggregationFunction> __values)
withAggregationFunction
in class ValueFacet
public RelatedTermFacet withAdditionalFacetView(AdditionalFacetView... __values)
withAdditionalFacetView
in class ValueFacet
public RelatedTermFacet withAdditionalFacetView(java.util.Collection<AdditionalFacetView> __values)
withAdditionalFacetView
in class ValueFacet
public RelatedTermFacet withMaxSliceCategories(int maxSliceCategories)
withMaxSliceCategories
in class ValueFacet
public RelatedTermFacet withMaxSliceCategories(java.lang.Integer maxSliceCategories)
withMaxSliceCategories
in class ValueFacet
public RelatedTermFacet withMinDocsPerCategory(int minDocsPerCategory)
withMinDocsPerCategory
in class ValueFacet
public RelatedTermFacet withMinDocsPerCategory(java.lang.Integer minDocsPerCategory)
withMinDocsPerCategory
in class ValueFacet
public RelatedTermFacet withMaxCategories(int maxCategories)
withMaxCategories
in class ValueFacet
public RelatedTermFacet withMaxCategories(java.lang.Integer maxCategories)
withMaxCategories
in class ValueFacet
public RelatedTermFacet withMaxCategoriesPerLevel(int maxCategoriesPerLevel)
withMaxCategoriesPerLevel
in class ValueFacet
public RelatedTermFacet withMaxCategoriesPerLevel(java.lang.Integer maxCategoriesPerLevel)
withMaxCategoriesPerLevel
in class ValueFacet
public RelatedTermFacet withSortFunction(java.lang.String sortFunction)
withSortFunction
in class ValueFacet
public RelatedTermFacet withSortAggregationFunction(java.lang.String sortAggregationFunction)
withSortAggregationFunction
in class ValueFacet
public RelatedTermFacet withExplicitSortOrderValues(java.lang.String explicitSortOrderValues)
withExplicitSortOrderValues
in class ValueFacet
public RelatedTermFacet withReverse(boolean reverse)
withReverse
in class ValueFacet
public RelatedTermFacet withReverse(java.lang.Boolean reverse)
withReverse
in class ValueFacet
@Deprecated public RelatedTermFacet withAggregateScores(boolean aggregateScores)
withAggregateScores
in class ValueFacet
@Deprecated public RelatedTermFacet withAggregateScores(java.lang.Boolean aggregateScores)
withAggregateScores
in class ValueFacet
public void setDictionary(java.lang.String dictionary)
public java.lang.String getDictionary()
public RelatedTermFacet withDictionary(java.lang.String dictionary)
public void setMinCorpusFrequency(int minCorpusFrequency)
public int getMinCorpusFrequency()
public RelatedTermFacet withMinCorpusFrequency(int minCorpusFrequency)
public RelatedTermFacet withMinCorpusFrequency(java.lang.Integer minCorpusFrequency)
public void setCorpusLowPassFilter(double corpusLowPassFilter)
public double getCorpusLowPassFilter()
public RelatedTermFacet withCorpusLowPassFilter(double corpusLowPassFilter)
public void setLocalLowPassFilter(double localLowPassFilter)
public double getLocalLowPassFilter()
public RelatedTermFacet withLocalLowPassFilter(double localLowPassFilter)
public void setBlacklist(java.lang.String blacklist)
public java.lang.String getBlacklist()
public RelatedTermFacet withBlacklist(java.lang.String blacklist)
public void setMaxRelatedTermsHitsPerSlice(int maxRelatedTermsHitsPerSlice)
public int getMaxRelatedTermsHitsPerSlice()
public RelatedTermFacet withMaxRelatedTermsHitsPerSlice(int maxRelatedTermsHitsPerSlice)
public RelatedTermFacet withMaxRelatedTermsHitsPerSlice(java.lang.Integer maxRelatedTermsHitsPerSlice)
public RelatedTermFacet makeCopy()
makeCopy
in class ValueFacet
public static RelatedTermFacet readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class ValueFacet
javax.xml.bind.JAXBException
java.io.IOException
public static RelatedTermFacet fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class ValueFacet
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class ValueFacet
com.exalead.util.TypedException
public void accept(ValueFacet.Visitor visitor) throws com.exalead.util.TypedException
accept
in class ValueFacet
com.exalead.util.TypedException
public void accept(VirtualFacet.Visitor visitor) throws com.exalead.util.TypedException
accept
in class ValueFacet
com.exalead.util.TypedException
public void accept(Facet.Visitor visitor) throws com.exalead.util.TypedException
accept
in class ValueFacet
com.exalead.util.TypedException
public void accept(FacetView.Visitor visitor) throws com.exalead.util.TypedException
accept
in class ValueFacet
com.exalead.util.TypedException
public <T> T accept(ValueFacet.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class ValueFacet
com.exalead.util.TypedException
public <T> T accept(VirtualFacet.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class ValueFacet
com.exalead.util.TypedException
public <T> T accept(Facet.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class ValueFacet
com.exalead.util.TypedException
public <T> T accept(FacetView.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class ValueFacet
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.