com.atlassian.confluence.search.didyoumean.lucene.extractor
Class WordExtractor

java.lang.Object
  extended by com.atlassian.confluence.search.didyoumean.lucene.extractor.WordExtractor
All Implemented Interfaces:
com.atlassian.bonnie.search.Extractor

public class WordExtractor
extends Object
implements com.atlassian.bonnie.search.Extractor

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.


Field Summary
static String DID_YOU_MEAN_FIELD
           
 
Constructor Summary
WordExtractor()
           
 
Method Summary
 void addFields(org.apache.lucene.document.Document document, StringBuffer defaultSearchableText, com.atlassian.bonnie.Searchable searchable)
           
 void setSettingsManager(SettingsManager settingsManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DID_YOU_MEAN_FIELD

public static final String DID_YOU_MEAN_FIELD
See Also:
Constant Field Values
Constructor Detail

WordExtractor

public WordExtractor()
Method Detail

addFields

public void addFields(org.apache.lucene.document.Document document,
                      StringBuffer defaultSearchableText,
                      com.atlassian.bonnie.Searchable searchable)
Specified by:
addFields in interface com.atlassian.bonnie.search.Extractor

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)


Copyright © 2003-2013 Atlassian. All Rights Reserved.