com.atlassian.confluence.search.didyoumean.lucene
Class DocumentCreator

java.lang.Object
  extended by 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)
 
Constructor Summary
DocumentCreator()
           
 
Method Summary
static org.apache.lucene.document.Document createDocument(String word)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DocumentCreator

public DocumentCreator()
Method Detail

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.