| java.lang.Object | |
| ↳ | com.atlassian.confluence.search.didyoumean.DidYouMean.Constants |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | BUNDLED_DICTIONARY_SIZE | ||||||||||
| int | CONFLUENCE_VOCABULARY_SIZE_ESTIMATE | An estimate on the number of unique words found from mining Confluence content that is not already contained in the dictionary. |
|||||||||
| int | DEFAULT_DICTIONARY_WORD_FREQ | The default frequency given to words that come from the bundled dictionary that do not appear in Confluence's index. | |||||||||
| String | INDEX_DIR | Name of index directory | |||||||||
| int | MAX_BODY_GRAM_SIZE | ||||||||||
| int | MAX_EDGE_GRAM_SIZE | ||||||||||
| int | MAX_INPUT_WORD_LENGTH | Maximum length of word for which an attempt will be made to find suggestions for. | |||||||||
| int | MIN_BODY_GRAM_SIZE | ||||||||||
| int | MIN_EDGE_GRAM_SIZE | ||||||||||
| int | MIN_REQUIRED_FREQ_RATIO | ||||||||||
| int | MIN_WORD_LENGTH | The minimum length word that will be considered for n-gram indexing. | |||||||||
| int | WORD_FREQ_FACTOR | The factor that defines how many times a suggestion must occur more frequently than a vocabulary word before we dare suggest it. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
An estimate on the number of unique words found from mining Confluence content that is not already contained in the dictionary. The estimate has been arrived at by taking the average number of words considered to be in common usage according to Oxford dictionary. Of course some of these would already be accounted for in the bundled dictionary (but we can't simply subtract because the bundled dictionary also includes alternate forms of words such as -ing, -s, etc.)
This estimate is intended to be used to help with setting the initial capacities of collections to minimise reallocation only
The default frequency given to words that come from the bundled dictionary that do not appear in Confluence's index. This frequency is given to allow these words to be considered even though they have not been used in any documents.
Maximum length of word for which an attempt will be made to find suggestions for.
The minimum length word that will be considered for n-gram indexing.
The factor that defines how many times a suggestion must occur more frequently than a vocabulary word before we dare suggest it.