com.atlassian.confluence.search.lucene.postprocessor
Class ContentBoostPostProcessor

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.postprocessor.ContentBoostPostProcessor
All Implemented Interfaces:
com.atlassian.bonnie.search.DocumentPostProcessor

public class ContentBoostPostProcessor
extends Object
implements com.atlassian.bonnie.search.DocumentPostProcessor

Encapsulates the search ranking/boosting strategy in Confluence.


Constructor Summary
ContentBoostPostProcessor(Map<String,Float> documentLevelBoosts, Map<String,Float> fieldLevelBoosts)
          Initialise to custom values
 
Method Summary
 void process(org.apache.lucene.document.Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentBoostPostProcessor

public ContentBoostPostProcessor(Map<String,Float> documentLevelBoosts,
                                 Map<String,Float> fieldLevelBoosts)
Initialise to custom values

Parameters:
documentLevelBoosts - Key = class name, value = boosting factor
fieldLevelBoosts - Key = field name, value = boosting factor
Method Detail

process

public void process(org.apache.lucene.document.Document document)
Specified by:
process in interface com.atlassian.bonnie.search.DocumentPostProcessor


Copyright © 2003-2011 Atlassian. All Rights Reserved.