public class

WordExtractor

extends Object
implements Extractor
java.lang.Object
   ↳ com.atlassian.confluence.search.didyoumean.lucene.extractor.WordExtractor

Class Overview

Extractor responsible for adding tokenized field used by the "Did You Mean" feature to rank suggestions. Ranking is done by checking the frequency of a dictionary suggestion against the contents of this field. The more often it occurs, the higher the frequency. Frequency checking cannot be done on "contentBody" field because the tokenization on this field does not lowercase terms and breaks them down into word stems - stemmed tokens with their case intact are un-useable for this feature.

Summary

Constants
String DID_YOU_MEAN_FIELD
Public Constructors
WordExtractor()
Public Methods
void addFields(Document document, StringBuffer defaultSearchableText, Searchable searchable)
void setSettingsManager(SettingsManager settingsManager)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bonnie.search.Extractor

Constants

public static final String DID_YOU_MEAN_FIELD

Constant Value: "didyoumean"

Public Constructors

public WordExtractor ()

Public Methods

public void addFields (Document document, StringBuffer defaultSearchableText, Searchable searchable)

public void setSettingsManager (SettingsManager settingsManager)