public class SuggestBuildConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SuggestBuildConfig.SecurityModel |
Modifier and Type | Field and Description |
---|---|
boolean |
buildAfterIndexImport |
boolean |
computePermutation |
static boolean |
DEFAULT_BUILD_AFTER_INDEX_IMPORT |
static boolean |
DEFAULT_COMPUTE_PERMUTATION |
static int |
DEFAULT_MAX_ENTRY_LENGTH |
static int |
DEFAULT_MAX_SUGGESTIONS |
static int |
DEFAULT_NB_URLS_PER_ENTRY |
static boolean |
DEFAULT_SANITIZE_ENTRIES |
static boolean |
DEFAULT_SECURE |
static java.lang.String |
DEFAULT_SECURITY_MODEL |
static int |
DEFAULT_SPLIT_N_GRAMS |
static boolean |
DEFAULT_SPLIT_SENTENCE |
static boolean |
DEFAULT_SUB_EXPR |
static boolean |
DEFAULT_SUB_STRING |
int |
maxEntryLength |
int |
maxSuggestions |
int |
nbUrlsPerEntry |
boolean |
sanitizeEntries |
boolean |
secure |
java.lang.String |
securityModel |
int |
splitNGrams |
boolean |
splitSentence |
boolean |
subExpr |
boolean |
subString |
java.lang.String |
tokenizationConfig |
Constructor and Description |
---|
SuggestBuildConfig() |
SuggestBuildConfig(SuggestBuildConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SuggestBuildConfig.
|
static SuggestBuildConfig |
fromString(java.lang.String s)
String representation of this SuggestBuildConfig.
|
int |
getMaxEntryLength()
Maximum number of characters in a suggest entry.
This is a security measure to prevent overly-long entries. They are automatically truncated after the specified length. 0 means no limit. |
int |
getMaxSuggestions()
The maximum number of suggestions that can be shown to the user for a given input string.
You cannot change this dynamically. |
int |
getNbUrlsPerEntry()
Defines the maximum number of URL to be stored for each entry.
|
java.lang.String |
getSecurityModel()
Enables the enovia-specific handling of security tokens.
|
SuggestBuildConfig.SecurityModel |
getSecurityModelAsEnum()
Enables the enovia-specific handling of security tokens.
|
int |
getSplitNGrams()
Breaks up a suggest entry into several entries, and performs matches independently on the chunks.
A sliding window of ngrams of a given size will be created, and an entry will be created for each step of the window. For example, "a b c d e f" with a split on 4-grams will give entries "a b c d", "b c d e" and "c d e f". 0 means no splitting. This action is performed after the sentence split if the Sentence split option is selected. |
java.lang.String |
getTokenizationConfig()
Tokenization Config to use.
|
static boolean |
isA(java.lang.String str,
SuggestBuildConfig.SecurityModel item) |
boolean |
isBuildAfterIndexImport()
Triggers a build automatically after the index refreshes.
|
boolean |
isComputePermutation()
Computes all permutations for an entry and adds them as separate entries.
This action is performed after the sentence split if the Sentence split option is selected. |
static boolean |
isOneOf(java.lang.String str,
SuggestBuildConfig.SecurityModel... items) |
boolean |
isSanitizeEntries()
Strips the entry of punctuation, and encloses any UQL operator between quotes.
|
boolean |
isSecure()
Makes use of documents and users' security tokens to restrict suggestions.
|
boolean |
isSplitSentence()
Breaks up a suggest entry into several entries, and performs matches independently on the chunks.
If the entry is multi-sentence, an entry will be created for each sentence. |
boolean |
isSubExpr()
Finds matches on every start of word.
For example, "first test" will be returned both for "fir" and for "tes". |
boolean |
isSubString()
Finds matches on every letter.
For example, "first test" will be returned for "fir", for "rs", for "es", ... |
SuggestBuildConfig |
makeCopy()
Creates and returns a deep copy of this SuggestBuildConfig.
|
static SuggestBuildConfig |
readFrom(java.io.InputStream is)
Read this SuggestBuildConfig from an XML fragment.
|
void |
setBuildAfterIndexImport(boolean buildAfterIndexImport)
Triggers a build automatically after the index refreshes.
|
void |
setComputePermutation(boolean computePermutation)
Computes all permutations for an entry and adds them as separate entries.
This action is performed after the sentence split if the Sentence split option is selected. |
void |
setMaxEntryLength(int maxEntryLength)
Maximum number of characters in a suggest entry.
This is a security measure to prevent overly-long entries. They are automatically truncated after the specified length. 0 means no limit. |
void |
setMaxSuggestions(int maxSuggestions)
The maximum number of suggestions that can be shown to the user for a given input string.
You cannot change this dynamically. |
void |
setNbUrlsPerEntry(int nbUrlsPerEntry)
Defines the maximum number of URL to be stored for each entry.
|
void |
setSanitizeEntries(boolean sanitizeEntries)
Strips the entry of punctuation, and encloses any UQL operator between quotes.
|
void |
setSecure(boolean secure)
Makes use of documents and users' security tokens to restrict suggestions.
|
void |
setSecurityModel(java.lang.String securityModel)
Enables the enovia-specific handling of security tokens.
|
void |
setSecurityModel(SuggestBuildConfig.SecurityModel item)
Enables the enovia-specific handling of security tokens.
|
void |
setSplitNGrams(int splitNGrams)
Breaks up a suggest entry into several entries, and performs matches independently on the chunks.
A sliding window of ngrams of a given size will be created, and an entry will be created for each step of the window. For example, "a b c d e f" with a split on 4-grams will give entries "a b c d", "b c d e" and "c d e f". 0 means no splitting. This action is performed after the sentence split if the Sentence split option is selected. |
void |
setSplitSentence(boolean splitSentence)
Breaks up a suggest entry into several entries, and performs matches independently on the chunks.
If the entry is multi-sentence, an entry will be created for each sentence. |
void |
setSubExpr(boolean subExpr)
Finds matches on every start of word.
For example, "first test" will be returned both for "fir" and for "tes". |
void |
setSubString(boolean subString)
Finds matches on every letter.
For example, "first test" will be returned for "fir", for "rs", for "es", ... |
void |
setTokenizationConfig(java.lang.String tokenizationConfig)
Tokenization Config to use.
|
java.lang.String |
toString()
String representation of this SuggestBuildConfig.
|
SuggestBuildConfig |
withBuildAfterIndexImport(boolean buildAfterIndexImport) |
SuggestBuildConfig |
withBuildAfterIndexImport(java.lang.Boolean buildAfterIndexImport) |
SuggestBuildConfig |
withComputePermutation(boolean computePermutation) |
SuggestBuildConfig |
withComputePermutation(java.lang.Boolean computePermutation) |
SuggestBuildConfig |
withMaxEntryLength(int maxEntryLength) |
SuggestBuildConfig |
withMaxEntryLength(java.lang.Integer maxEntryLength) |
SuggestBuildConfig |
withMaxSuggestions(int maxSuggestions) |
SuggestBuildConfig |
withMaxSuggestions(java.lang.Integer maxSuggestions) |
SuggestBuildConfig |
withNbUrlsPerEntry(int nbUrlsPerEntry) |
SuggestBuildConfig |
withNbUrlsPerEntry(java.lang.Integer nbUrlsPerEntry) |
SuggestBuildConfig |
withSanitizeEntries(boolean sanitizeEntries) |
SuggestBuildConfig |
withSanitizeEntries(java.lang.Boolean sanitizeEntries) |
SuggestBuildConfig |
withSecure(boolean secure) |
SuggestBuildConfig |
withSecure(java.lang.Boolean secure) |
SuggestBuildConfig |
withSecurityModel(java.lang.String securityModel) |
SuggestBuildConfig |
withSplitNGrams(int splitNGrams) |
SuggestBuildConfig |
withSplitNGrams(java.lang.Integer splitNGrams) |
SuggestBuildConfig |
withSplitSentence(boolean splitSentence) |
SuggestBuildConfig |
withSplitSentence(java.lang.Boolean splitSentence) |
SuggestBuildConfig |
withSubExpr(boolean subExpr) |
SuggestBuildConfig |
withSubExpr(java.lang.Boolean subExpr) |
SuggestBuildConfig |
withSubString(boolean subString) |
SuggestBuildConfig |
withSubString(java.lang.Boolean subString) |
SuggestBuildConfig |
withTokenizationConfig(java.lang.String tokenizationConfig) |
void |
writeTo(java.io.OutputStream os)
Write this SuggestBuildConfig as an XML fragment
|
public boolean subExpr
public static final boolean DEFAULT_SUB_EXPR
public boolean subString
public static final boolean DEFAULT_SUB_STRING
public boolean splitSentence
public static final boolean DEFAULT_SPLIT_SENTENCE
public int splitNGrams
public static final int DEFAULT_SPLIT_N_GRAMS
public boolean computePermutation
public static final boolean DEFAULT_COMPUTE_PERMUTATION
public int maxEntryLength
public static final int DEFAULT_MAX_ENTRY_LENGTH
public int maxSuggestions
public static final int DEFAULT_MAX_SUGGESTIONS
public int nbUrlsPerEntry
public static final int DEFAULT_NB_URLS_PER_ENTRY
public java.lang.String tokenizationConfig
public boolean sanitizeEntries
public static final boolean DEFAULT_SANITIZE_ENTRIES
public boolean buildAfterIndexImport
public static final boolean DEFAULT_BUILD_AFTER_INDEX_IMPORT
public boolean secure
public static final boolean DEFAULT_SECURE
public java.lang.String securityModel
public static final java.lang.String DEFAULT_SECURITY_MODEL
public SuggestBuildConfig()
public SuggestBuildConfig(SuggestBuildConfig o)
public static boolean isA(java.lang.String str, SuggestBuildConfig.SecurityModel item)
public static boolean isOneOf(java.lang.String str, SuggestBuildConfig.SecurityModel... items)
public void setSecurityModel(SuggestBuildConfig.SecurityModel item)
public SuggestBuildConfig.SecurityModel getSecurityModelAsEnum()
public void setSubExpr(boolean subExpr)
public boolean isSubExpr()
public SuggestBuildConfig withSubExpr(boolean subExpr)
public SuggestBuildConfig withSubExpr(java.lang.Boolean subExpr)
public void setSubString(boolean subString)
public boolean isSubString()
public SuggestBuildConfig withSubString(boolean subString)
public SuggestBuildConfig withSubString(java.lang.Boolean subString)
public void setSplitSentence(boolean splitSentence)
public boolean isSplitSentence()
public SuggestBuildConfig withSplitSentence(boolean splitSentence)
public SuggestBuildConfig withSplitSentence(java.lang.Boolean splitSentence)
public void setSplitNGrams(int splitNGrams)
public int getSplitNGrams()
public SuggestBuildConfig withSplitNGrams(int splitNGrams)
public SuggestBuildConfig withSplitNGrams(java.lang.Integer splitNGrams)
public void setComputePermutation(boolean computePermutation)
public boolean isComputePermutation()
public SuggestBuildConfig withComputePermutation(boolean computePermutation)
public SuggestBuildConfig withComputePermutation(java.lang.Boolean computePermutation)
public void setMaxEntryLength(int maxEntryLength)
public int getMaxEntryLength()
public SuggestBuildConfig withMaxEntryLength(int maxEntryLength)
public SuggestBuildConfig withMaxEntryLength(java.lang.Integer maxEntryLength)
public void setMaxSuggestions(int maxSuggestions)
public int getMaxSuggestions()
public SuggestBuildConfig withMaxSuggestions(int maxSuggestions)
public SuggestBuildConfig withMaxSuggestions(java.lang.Integer maxSuggestions)
public void setNbUrlsPerEntry(int nbUrlsPerEntry)
public int getNbUrlsPerEntry()
public SuggestBuildConfig withNbUrlsPerEntry(int nbUrlsPerEntry)
public SuggestBuildConfig withNbUrlsPerEntry(java.lang.Integer nbUrlsPerEntry)
public void setTokenizationConfig(java.lang.String tokenizationConfig)
public java.lang.String getTokenizationConfig()
public SuggestBuildConfig withTokenizationConfig(java.lang.String tokenizationConfig)
public void setSanitizeEntries(boolean sanitizeEntries)
public boolean isSanitizeEntries()
public SuggestBuildConfig withSanitizeEntries(boolean sanitizeEntries)
public SuggestBuildConfig withSanitizeEntries(java.lang.Boolean sanitizeEntries)
public void setBuildAfterIndexImport(boolean buildAfterIndexImport)
public boolean isBuildAfterIndexImport()
public SuggestBuildConfig withBuildAfterIndexImport(boolean buildAfterIndexImport)
public SuggestBuildConfig withBuildAfterIndexImport(java.lang.Boolean buildAfterIndexImport)
public void setSecure(boolean secure)
public boolean isSecure()
public SuggestBuildConfig withSecure(boolean secure)
public SuggestBuildConfig withSecure(java.lang.Boolean secure)
public void setSecurityModel(java.lang.String securityModel)
public java.lang.String getSecurityModel()
public SuggestBuildConfig withSecurityModel(java.lang.String securityModel)
public SuggestBuildConfig makeCopy()
public static SuggestBuildConfig 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 SuggestBuildConfig 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 © 2021 Dassault Systèmes, All Rights Reserved.