public class RelatedTermsSynthesisConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RelatedTermsSynthesisConfig.SortFunction |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
blacklist |
double |
corpusLowPassFilter |
static double |
DEFAULT_CORPUS_LOW_PASS_FILTER |
static boolean |
DEFAULT_ENABLED |
static java.lang.String |
DEFAULT_INDEX_FIELD |
static double |
DEFAULT_LOCAL_LOW_PASS_FILTER |
static int |
DEFAULT_MAX_RELATED_TERMS_HITS_PER_SLICE |
static int |
DEFAULT_MAX_SLICE_CATEGORIES |
static int |
DEFAULT_MIN_CORPUS_FREQUENCY_FILTER |
static int |
DEFAULT_NUMBER |
static boolean |
DEFAULT_OPTIMIZED_FOR_EXHAUSTIVE_RANKED_SYNTHESIS |
static java.lang.String |
DEFAULT_SORT_FUNCTION |
java.lang.String |
dictionaryName |
boolean |
enabled |
java.lang.String |
indexField |
double |
localLowPassFilter |
int |
maxRelatedTermsHitsPerSlice |
int |
maxSliceCategories |
int |
minCorpusFrequencyFilter |
int |
number |
boolean |
optimizedForExhaustiveRankedSynthesis |
java.lang.String |
sortFunction |
Constructor and Description |
---|
RelatedTermsSynthesisConfig() |
RelatedTermsSynthesisConfig(RelatedTermsSynthesisConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this RelatedTermsSynthesisConfig.
|
static RelatedTermsSynthesisConfig |
fromString(java.lang.String s)
String representation of this RelatedTermsSynthesisConfig.
|
java.lang.String |
getBlacklist()
References the related terms blocklist resource.
|
double |
getCorpusLowPassFilter()
Filters out terms occurring more than this threshold in the whole index.
|
java.lang.String |
getDictionaryName()
The dictionary containing keywords.
|
java.lang.String |
getIndexField()
The index field where related-terms have been indexed.
|
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 |
getMaxSliceCategories()
Maximum number of categories returned by each slice for one facet.
0 means no limit. Warning: Results merged by the search server may be incorrect. |
int |
getMinCorpusFrequencyFilter()
Minimum number of occurrences in the whole index for a term to be possibly selected for synthesis.
|
int |
getNumber()
Maximum number of related terms computed for a query.
|
java.lang.String |
getSortFunction()
Sort function
Value can be one of
count
alphanum
|
RelatedTermsSynthesisConfig.SortFunction |
getSortFunctionAsEnum()
Sort function
Value can be one of
count
alphanum
|
static boolean |
isA(java.lang.String str,
RelatedTermsSynthesisConfig.SortFunction item) |
boolean |
isEnabled()
Enables related terms synthesis.
|
static boolean |
isOneOf(java.lang.String str,
RelatedTermsSynthesisConfig.SortFunction... items) |
boolean |
isOptimizedForExhaustiveRankedSynthesis()
If true, each slice will sort the DIDs before computing the synthesis
to improve attributes fetching locality. |
RelatedTermsSynthesisConfig |
makeCopy()
Creates and returns a deep copy of this RelatedTermsSynthesisConfig.
|
static RelatedTermsSynthesisConfig |
readFrom(java.io.InputStream is)
Read this RelatedTermsSynthesisConfig from an XML fragment.
|
void |
setBlacklist(java.lang.String blacklist)
References the related terms blocklist resource.
|
void |
setCorpusLowPassFilter(double corpusLowPassFilter)
Filters out terms occurring more than this threshold in the whole index.
|
void |
setDictionaryName(java.lang.String dictionaryName)
The dictionary containing keywords.
|
void |
setEnabled(boolean enabled)
Enables related terms synthesis.
|
void |
setIndexField(java.lang.String indexField)
The index field where related-terms have been indexed.
|
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 |
setMaxSliceCategories(int maxSliceCategories)
Maximum number of categories returned by each slice for one facet.
0 means no limit. Warning: Results merged by the search server may be incorrect. |
void |
setMinCorpusFrequencyFilter(int minCorpusFrequencyFilter)
Minimum number of occurrences in the whole index for a term to be possibly selected for synthesis.
|
void |
setNumber(int number)
Maximum number of related terms computed for a query.
|
void |
setOptimizedForExhaustiveRankedSynthesis(boolean optimizedForExhaustiveRankedSynthesis)
If true, each slice will sort the DIDs before computing the synthesis
to improve attributes fetching locality. |
void |
setSortFunction(RelatedTermsSynthesisConfig.SortFunction item)
Sort function
Value can be one of
count
alphanum
|
void |
setSortFunction(java.lang.String sortFunction)
Sort function
Value can be one of
count
alphanum
|
java.lang.String |
toString()
String representation of this RelatedTermsSynthesisConfig.
|
RelatedTermsSynthesisConfig |
withBlacklist(java.lang.String blacklist) |
RelatedTermsSynthesisConfig |
withCorpusLowPassFilter(double corpusLowPassFilter) |
RelatedTermsSynthesisConfig |
withDictionaryName(java.lang.String dictionaryName) |
RelatedTermsSynthesisConfig |
withEnabled(boolean enabled) |
RelatedTermsSynthesisConfig |
withEnabled(java.lang.Boolean enabled) |
RelatedTermsSynthesisConfig |
withIndexField(java.lang.String indexField) |
RelatedTermsSynthesisConfig |
withLocalLowPassFilter(double localLowPassFilter) |
RelatedTermsSynthesisConfig |
withMaxRelatedTermsHitsPerSlice(int maxRelatedTermsHitsPerSlice) |
RelatedTermsSynthesisConfig |
withMaxRelatedTermsHitsPerSlice(java.lang.Integer maxRelatedTermsHitsPerSlice) |
RelatedTermsSynthesisConfig |
withMaxSliceCategories(int maxSliceCategories) |
RelatedTermsSynthesisConfig |
withMaxSliceCategories(java.lang.Integer maxSliceCategories) |
RelatedTermsSynthesisConfig |
withMinCorpusFrequencyFilter(int minCorpusFrequencyFilter) |
RelatedTermsSynthesisConfig |
withMinCorpusFrequencyFilter(java.lang.Integer minCorpusFrequencyFilter) |
RelatedTermsSynthesisConfig |
withNumber(int number) |
RelatedTermsSynthesisConfig |
withNumber(java.lang.Integer number) |
RelatedTermsSynthesisConfig |
withOptimizedForExhaustiveRankedSynthesis(boolean optimizedForExhaustiveRankedSynthesis) |
RelatedTermsSynthesisConfig |
withOptimizedForExhaustiveRankedSynthesis(java.lang.Boolean optimizedForExhaustiveRankedSynthesis) |
RelatedTermsSynthesisConfig |
withSortFunction(java.lang.String sortFunction) |
void |
writeTo(java.io.OutputStream os)
Write this RelatedTermsSynthesisConfig as an XML fragment
|
public java.lang.String dictionaryName
public boolean enabled
public static final boolean DEFAULT_ENABLED
public int number
public static final int DEFAULT_NUMBER
public int minCorpusFrequencyFilter
public static final int DEFAULT_MIN_CORPUS_FREQUENCY_FILTER
public double corpusLowPassFilter
public static final double DEFAULT_CORPUS_LOW_PASS_FILTER
public boolean optimizedForExhaustiveRankedSynthesis
public static final boolean DEFAULT_OPTIMIZED_FOR_EXHAUSTIVE_RANKED_SYNTHESIS
public java.lang.String sortFunction
public static final java.lang.String DEFAULT_SORT_FUNCTION
public double localLowPassFilter
public static final double DEFAULT_LOCAL_LOW_PASS_FILTER
public java.lang.String blacklist
public java.lang.String indexField
public static final java.lang.String DEFAULT_INDEX_FIELD
public int maxSliceCategories
public static final int DEFAULT_MAX_SLICE_CATEGORIES
public int maxRelatedTermsHitsPerSlice
public static final int DEFAULT_MAX_RELATED_TERMS_HITS_PER_SLICE
public RelatedTermsSynthesisConfig()
public RelatedTermsSynthesisConfig(RelatedTermsSynthesisConfig o)
public static boolean isA(java.lang.String str, RelatedTermsSynthesisConfig.SortFunction item)
public static boolean isOneOf(java.lang.String str, RelatedTermsSynthesisConfig.SortFunction... items)
public void setSortFunction(RelatedTermsSynthesisConfig.SortFunction item)
public RelatedTermsSynthesisConfig.SortFunction getSortFunctionAsEnum()
public void setDictionaryName(java.lang.String dictionaryName)
public java.lang.String getDictionaryName()
public RelatedTermsSynthesisConfig withDictionaryName(java.lang.String dictionaryName)
public void setEnabled(boolean enabled)
public boolean isEnabled()
public RelatedTermsSynthesisConfig withEnabled(boolean enabled)
public RelatedTermsSynthesisConfig withEnabled(java.lang.Boolean enabled)
public void setNumber(int number)
public int getNumber()
public RelatedTermsSynthesisConfig withNumber(int number)
public RelatedTermsSynthesisConfig withNumber(java.lang.Integer number)
public void setMinCorpusFrequencyFilter(int minCorpusFrequencyFilter)
public int getMinCorpusFrequencyFilter()
public RelatedTermsSynthesisConfig withMinCorpusFrequencyFilter(int minCorpusFrequencyFilter)
public RelatedTermsSynthesisConfig withMinCorpusFrequencyFilter(java.lang.Integer minCorpusFrequencyFilter)
public void setCorpusLowPassFilter(double corpusLowPassFilter)
public double getCorpusLowPassFilter()
public RelatedTermsSynthesisConfig withCorpusLowPassFilter(double corpusLowPassFilter)
public void setOptimizedForExhaustiveRankedSynthesis(boolean optimizedForExhaustiveRankedSynthesis)
public boolean isOptimizedForExhaustiveRankedSynthesis()
public RelatedTermsSynthesisConfig withOptimizedForExhaustiveRankedSynthesis(boolean optimizedForExhaustiveRankedSynthesis)
public RelatedTermsSynthesisConfig withOptimizedForExhaustiveRankedSynthesis(java.lang.Boolean optimizedForExhaustiveRankedSynthesis)
public void setSortFunction(java.lang.String sortFunction)
public java.lang.String getSortFunction()
public RelatedTermsSynthesisConfig withSortFunction(java.lang.String sortFunction)
public void setLocalLowPassFilter(double localLowPassFilter)
public double getLocalLowPassFilter()
public RelatedTermsSynthesisConfig withLocalLowPassFilter(double localLowPassFilter)
public void setBlacklist(java.lang.String blacklist)
public java.lang.String getBlacklist()
public RelatedTermsSynthesisConfig withBlacklist(java.lang.String blacklist)
public void setIndexField(java.lang.String indexField)
public java.lang.String getIndexField()
public RelatedTermsSynthesisConfig withIndexField(java.lang.String indexField)
public void setMaxSliceCategories(int maxSliceCategories)
public int getMaxSliceCategories()
public RelatedTermsSynthesisConfig withMaxSliceCategories(int maxSliceCategories)
public RelatedTermsSynthesisConfig withMaxSliceCategories(java.lang.Integer maxSliceCategories)
public void setMaxRelatedTermsHitsPerSlice(int maxRelatedTermsHitsPerSlice)
public int getMaxRelatedTermsHitsPerSlice()
public RelatedTermsSynthesisConfig withMaxRelatedTermsHitsPerSlice(int maxRelatedTermsHitsPerSlice)
public RelatedTermsSynthesisConfig withMaxRelatedTermsHitsPerSlice(java.lang.Integer maxRelatedTermsHitsPerSlice)
public RelatedTermsSynthesisConfig makeCopy()
public static RelatedTermsSynthesisConfig 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
javax.xml.bind.JAXBException
java.io.IOException
public static RelatedTermsSynthesisConfig 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 java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.