| java.lang.Object |
| ↳ |
com.atlassian.confluence.search.didyoumean.lucene.DocumentCreator |
Class Overview
Each word in the Confluence's "did-you-mean" vocabular is represented as a
separate lucene document in the "did-you-mean" index. This class is responsible
for creating these lucene documents.
Summary
| Constants |
| int |
MAX_WORD_LENGTH_STR |
Only support word lengths of size 2 (we care mostly about words that are 99 characters and less only)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
int
MAX_WORD_LENGTH_STR
Only support word lengths of size 2 (we care mostly about words that are 99 characters and less only)
Constant Value:
2
(0x00000002)
Public Constructors
public
DocumentCreator
()
Public Methods
public
static
Document
createDocument
(String word)
Parameters
| word
| a word to add to Confluence's vocabulary |
Returns
- a lucene document representing the specified word