|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.didyoumean.lucene.DocumentCreator
public class DocumentCreator
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.
Field Summary | |
---|---|
static int |
MAX_WORD_LENGTH_STR
Only support word lengths of size 2 (we care mostly about words that are 99 characters and less only) |
Constructor Summary | |
---|---|
DocumentCreator()
|
Method Summary | |
---|---|
static org.apache.lucene.document.Document |
createDocument(java.lang.String word)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_WORD_LENGTH_STR
Constructor Detail |
---|
public DocumentCreator()
Method Detail |
---|
public static org.apache.lucene.document.Document createDocument(java.lang.String word)
word
- a word to add to Confluence's vocabulary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |