public class

DocumentCreator

extends Object
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)
Public Constructors
DocumentCreator()
Public Methods
static Document createDocument(String word)
[Expand]
Inherited Methods
From class java.lang.Object

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