public class DocumentCreator
- extends Object
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.
Only support word lengths of size 2 (we care mostly about words that are 99 characters and less only)
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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)
- See Also:
- Constant Field Values
public static org.apache.lucene.document.Document createDocument(String word)
word - a word to add to Confluence's vocabulary
- a lucene document representing the specified word
Copyright © 2003-2012 Atlassian. All Rights Reserved.