com.atlassian.confluence.search.didyoumean.lucene
Class DocumentCreator
java.lang.Object
com.atlassian.confluence.search.didyoumean.lucene.DocumentCreator
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.
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) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_WORD_LENGTH_STR
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
DocumentCreator
public DocumentCreator()
createDocument
public static org.apache.lucene.document.Document createDocument(String word)
- Parameters:
word
- a word to add to Confluence's vocabulary
- Returns:
- a lucene document representing the specified word
Copyright © 2003-2012 Atlassian. All Rights Reserved.