public class DictionaryInfo extends DictionaryObject
Modifier and Type | Field and Description |
---|---|
static DictionaryMode |
DEFAULT_DICTIONARY_MODE |
static int |
DEFAULT_MAX_TERM_LENGTH |
static int |
DEFAULT_MIN_TERM_FREQUENCY |
static int |
DEFAULT_MIN_TERM_LENGTH |
dictionaryGroup, dictionaryName, dictionaryType, expansionMode, lastApproved, lastModified, lastPublished, status, version
Constructor and Description |
---|
DictionaryInfo() |
DictionaryInfo(RevisionStatus version) |
Modifier and Type | Method and Description |
---|---|
void |
addDataSource(Query value) |
void |
addDerivedField(String value) |
void |
addLocale(Locale value) |
DictionaryInfo |
clone() |
boolean |
equals(Object other) |
List<Query> |
getDataSources() |
List<String> |
getDerivedFields() |
DictionaryMode |
getDictionaryMode() |
List<Locale> |
getLocales() |
int |
getMaxTermLength()
Get the max term length.
|
int |
getMinTermFrequency()
Get the minimum frequency.
|
int |
getMinTermLength()
Get the min term length.
|
int |
hashCode() |
boolean |
isAllowNumericTerms()
Get if numeric terms should be extracted.
|
boolean |
isBidirectional()
Deprecated.
|
boolean |
isCaseSensitive() |
boolean |
isPartialMatches()
Set if partial matches are supported for dictionary.
|
boolean |
isPunctuationSensitive() |
void |
setAllowNumericTerms(boolean value) |
void |
setBidirectional(boolean value)
Deprecated.
|
void |
setCaseSensitive(boolean value) |
void |
setDataSources(List<Query> value) |
void |
setDerivedFields(List<String> value) |
void |
setDictionaryMode(DictionaryMode value) |
void |
setLocales(List<Locale> value) |
void |
setMaxTermLength(int value) |
void |
setMinTermFrequency(int value) |
void |
setMinTermLength(int value) |
void |
setPartialMatches(boolean value) |
void |
setPunctuationSensitive(boolean value) |
String |
toString() |
DictionaryInfo |
validate()
Validate properties.
|
append, append, append, getDictionaryGroup, getDictionaryName, getDictionaryType, getExpansionMode, getLastApproved, getLastModified, getLastPublished, getStatus, getVersion, isEmpty, setDictionaryGroup, setDictionaryName, setDictionaryType, setExpansionMode, setLastApproved, setLastModified, setLastPublished, setStatus, setVersion
public static final DictionaryMode DEFAULT_DICTIONARY_MODE
public static final int DEFAULT_MAX_TERM_LENGTH
public static final int DEFAULT_MIN_TERM_LENGTH
public static final int DEFAULT_MIN_TERM_FREQUENCY
public DictionaryInfo()
public DictionaryInfo(RevisionStatus version)
public boolean isPartialMatches()
This only applies to entity dictionaries.
NOTE: partial matches will only match at word boundaries for multi-word entities. For instance, for term "International Business Machines", the following lookups will match: "International Business Machines", "Business Machines", "Machines". This is primaryly useful when using using entity dictionary for autocomplete.
public void setPartialMatches(boolean value)
public boolean isCaseSensitive()
public void setCaseSensitive(boolean value)
public boolean isPunctuationSensitive()
public void setPunctuationSensitive(boolean value)
public DictionaryMode getDictionaryMode()
public void setDictionaryMode(DictionaryMode value)
public void addDerivedField(String value)
public void addDataSource(Query value)
public int getMaxTermLength()
Max term length applies to blacklist based spellcheck dictionaries only.
This value will be the maximum length of terms automatically extracted from the index.
public void setMaxTermLength(int value)
public int getMinTermFrequency()
Terms with a frequency less than this setting will not be extracted automatically from the index.
This setting only applies to blacklist based spellcheck dictionaries.
public void setMinTermFrequency(int value)
public int getMinTermLength()
Minimum term length applies to blacklist based spellcheck dictionaries only.
This value will be the minimum length that a term must have to be automatically extracted from the index.
public void setMinTermLength(int value)
public boolean isAllowNumericTerms()
If true, terms with numbers in them will also be automatically extracted from the index.
This setting only applies to blacklist based spellcheck dictionaries.
public void setAllowNumericTerms(boolean value)
public void addLocale(Locale value)
@Deprecated public boolean isBidirectional()
@Deprecated public void setBidirectional(boolean value)
public DictionaryInfo validate()
DictionaryObject
Throws IllegalArgumentException
if invalid.
validate
in class DictionaryObject
public int hashCode()
hashCode
in class DictionaryObject
public boolean equals(Object other)
equals
in class DictionaryObject
public DictionaryInfo clone()
clone
in class DictionaryObject
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.